RAL Classic color

RAL 3027 Raspberry red #C51D34

RAL 3027 Raspberry red is shown here as #C51D34, a widely published sRGB approximation of the printed swatch. It is a vivid red in the red family. In OKLCH it sits at lightness 0.531, chroma 0.199 and hue 21.5°. The nearest CSS named color is crimson (#DC143C), ΔE2000 4.5 away.

Relative luminance
0.1300
OKLCH L · C · h
0.531 · 0.199 · 21.5
Best text
White 5.83:1
Hue family
Red

#C51D34 color codes

HEX
#C51D34
RGB
rgb(197, 29, 52)
HSL
hsl(352, 74%, 44%)
OKLCH
oklch(0.531 0.199 21.5)
OKLab
oklab(0.531 0.185 0.073)
CIELAB (D65)
L* 42.76, a* 63.12, b* 32.23
XYZ (D65)
X 24.09, Y 13.00, Z 4.49
CMYK (naive)
cmyk(0%, 85%, 74%, 23%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #C51D34 accessible?

White text on it reaches 5.83:1, passing AA. Black text manages only 3.59:1, enough for large text only.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    3.59:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc +26
  • White text on it

    5.83:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc −82
  • As text on black

    3.59:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc −24
  • As text on white

    5.83:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +77

Nearest versions that pass 4.5:1

  • For text on white

    #C51D34 5.83:1

    It already reaches 5.83:1 on white, so no change is needed.

  • For text on black

    #D93644 4.56:1

    Lightening its OKLCH lightness from 0.53 to 0.59 reaches 4.56:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #C51D34 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #C51D34

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #C51D34 sits at step 600.

  1. 50#FFF1F1
    White
    1.09
    Black
    19.10
  2. 100#FFE4E2
    White
    1.20
    Black
    17.44
  3. 200#FFC8C5
    White
    1.46
    Black
    14.31
  4. 300#FF9F9D
    White
    1.96
    Black
    10.69
  5. 400#FF696D
    White
    2.80
    Black
    7.49
  6. 500#E5424E
    White
    4.02
    Black
    5.22
  7. 600This color#C51D34
    White
    5.83
    Black
    3.59
  8. 700#A70024
    White
    7.86
    Black
    2.66
  9. 800#7C0018
    White
    11.22
    Black
    1.87
  10. 900#53000D
    White
    15.28
    Black
    1.37
  11. 950#320005
    White
    18.45
    Black
    1.13

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #C51D34 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.214; #C51D34 uses 93% of it. Display P3, which many recent phones and laptops show, reaches 0.241 there: 13% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.199
sRGB edge
0.214
Display P3 edge
0.241
Rec. 2020 edge
0.281
Dominant wavelength
621 nm
Excitation purity
70%
Chromaticity
x 0.5793, y 0.3127
  • This color#C51D34
  • Most vivid in sRGB#CB002E
  • Most vivid in Display P3oklch(0.531 0.241 21.5)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #c51d34;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.7611 0 0.1713); }
}

Mixing

Mixing #C51D34

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#E28E9A
  • OKLab50%#EB9997
  • OKLCH50%#EB9997

Black #000000

  • sRGB50%#630F1A
  • OKLab50%#4B050E
  • OKLCH50%#4B050E

Its complement #007B82

  • sRGB50%#634C5B
  • OKLab50%#89605E
  • OKLCH50%#6F58B8
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #c51d34, white);
color: color-mix(in oklch, #c51d34 50%, white);

In use

#C51D34 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:15.83:1 Passes
  • Link and body-size textText, 4.5:15.83:1 Passes
  • Large headingLarge text, 3:15.83:1 Passes
  • Icons, borders and focus ringsNon-text, 3:15.83:1 Passes

Dark page

  • Button labelText, 4.5:15.83:1 Passes
  • Link and body-size textText, 4.5:13.21:1 Fails
  • Large headingLarge text, 3:13.21:1 Passes
  • Icons, borders and focus ringsNon-text, 3:13.21:1 Passes

For text on this page, the nearest shade that passes is #E23F4B 4.50:1

Color vision

How #C51D34 looks with color blindness

Deuteranopia changes it most, ΔE2000 40.5; tritanopia changes it least, 4.8.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #554E33 ΔE2000 34.4

    Distinct

    Reads as dark grayish brown

  • Deuteranopia

    No working green (medium-wavelength) cones

    #7E712E ΔE2000 40.5

    Distinct

    Reads as muted brown

  • Tritanopia

    No working blue (short-wavelength) cones

    #D90028 ΔE2000 4.8

    Close match

    Reads as vivid red

  • Achromatopsia

    No cone color vision; lightness only

    #656565 ΔE2000 27.5

    Distinct

    Reads as gray

Pairing check

Checked against its complement, #007B82. Their lightness contrast is only 1.15:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#C51D34 · #007B8253.1Stays distinct
Protanopia#554E33 · #70758325.1Stays distinct
Deuteranopia#7E712E · #616A8234.1Stays distinct
Tritanopia#D90028 · #00807D57.7Stays distinct
Achromatopsia#656565 · #6F6F6F3.8Easily confused

Harmony

Color harmonies for #C51D34

Its complement is #007B82, a muted teal, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#C51D34
  • Complement#007B82

Complementary

Open in Harmony Studio
  • −30°#B92279
  • Base#C51D34
  • +30°#A85000
  • Base#C51D34
  • +120°#158300
  • +240°#2162DC
  • Base#C51D34
  • +150°#007F65
  • +210°#00769F

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-3027: #c51d34;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-3027': '#c51d34',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-3027: oklch(0.531 0.199 21.5);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-3027": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.7725, 0.1137, 0.2039],
        "hex": "#c51d34"
      },
      "$description": "RAL 3027 Raspberry red (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral3027 = Color(.sRGB, red: 0.773, green: 0.114, blue: 0.204, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral3027 = Color(0xFFC51D34)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #C51D34 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.