#7F2228#7F2228

#7F2228 is a dark, vivid red. Relative luminance 0.058; OKLCH L 40.3% C 0.127 H 21.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#7F2228
RGBrgb(127, 34, 40)
HSLhsl(356, 58%, 32%)
HSVhsv(356, 73%, 50%)
CMYKcmyk(0%, 73.2%, 68.5%, 50.2%)
CIE-LABlab(28.93, 40.06, 19.74)
CIE-LCHlch(28.93, 44.66, 26.23°)
OKLaboklab(40.28% 0.1181 0.0466)
OKLCHoklch(40.28% 0.127 21.5)
XYZxyz(9.7085, 5.8107, 2.6174)
Luminance0.0581 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2228 #227F79
analogous
#7F2257 #7F2228 #7F4B22
triadic
#7F2228 #287F22 #22287F
tetradic
#7F2228 #577F22 #227F79 #4B227F
square
#7F2228 #577F22 #227F79 #4B227F
split-complementary
#7F2228 #227F4B #22577F
monochromatic
#1E080A #4F1519 #7F2228 #AF2F37 #CF4C55

Accessibility & contrast

On white

9.71
#7F2228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7F2228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2228
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2228#FFFFFF#000000##FFFFFF
##7F22281.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3827
Deuteranopia (green-blind)
#534B25
Tritanopia (blue-blind)
#8C0525
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f2228;
/* rgb */ color: rgb(127, 34, 40);
/* oklch */ color: oklch(40.3% 0.127 21.5);
Tailwind
colors: {
  custom: {
    50: '#ab6461',
    500: '#7f2228',
    950: '#000000',
  },
}
SCSS
$custom: #7f2228;
$custom-light: #ab6461;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2228",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 40
  },
  "hsl": {
    "h": 356.129,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40284,
    "c": 0.12698,
    "h": 21.5
  },
  "luminance": 0.05809
}

Semantic roles & 50–950 ramp

primary
#7F2228
secondary
#4BB2AB
accent
#E1D747
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110605
muted
#807A79

Preview Lab

Preview with #7F2228

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

Preview Lab → · Contrast checker → · Palette generator →

#7F2228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva