#D4271F#D4271F

#D4271F is a mid, highly saturated red. Relative luminance 0.155; OKLCH L 56.3% C 0.208 H 28.8°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#D4271F
RGBrgb(212, 39, 31)
HSLhsl(3, 74%, 48%)
HSVhsv(3, 85%, 83%)
CMYKcmyk(0%, 81.6%, 85.4%, 16.9%)
CIE-LABlab(46.38, 64.32, 48.40)
CIE-LCHlch(46.38, 80.49, 36.96°)
OKLaboklab(56.26% 0.1825 0.1001)
OKLCHoklch(56.26% 0.208 28.8)
XYZxyz(28.1278, 15.5517, 2.8168)
Luminance0.1555 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4271F #1FCCD4
analogous
#D41F71 #D4271F #D4821F
triadic
#D4271F #1FD427 #271FD4
tetradic
#D4271F #71D41F #1FCCD4 #821FD4
square
#D4271F #71D41F #1FCCD4 #821FD4
split-complementary
#D4271F #1FD482 #1F71D4
monochromatic
#69130F #9F1D17 #D4271F #E5524B #ED8681

Accessibility & contrast

On white

5.11
#D4271F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#D4271F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D4271F
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4271F#FFFFFF#000000##FFFFFF
##D4271F1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61561B
Deuteranopia (green-blind)
#8B7B13
Tritanopia (blue-blind)
#EA0028
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #d4271f;
/* rgb */ color: rgb(212, 39, 31);
/* oklch */ color: oklch(56.3% 0.208 28.8);
Tailwind
colors: {
  custom: {
    50: '#ec735e',
    500: '#d4271f',
    950: '#000000',
  },
}
SCSS
$custom: #d4271f;
$custom-light: #ec735e;
$custom-dark: #000000;
JSON
{
  "hex": "#d4271f",
  "rgb": {
    "r": 212,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 2.652,
    "s": 74.486,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56259,
    "c": 0.20816,
    "h": 28.8
  },
  "luminance": 0.15547
}

Semantic roles & 50–950 ramp

primary
#D4271F
secondary
#7AD1D5
accent
#E9F137
background
#FFF7F5
surface
#FFEDE9
border
#D7C8C5
text
#190904
muted
#867B79

Preview Lab

Preview with #D4271F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D4271F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva