#7F2227#7F2227

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

Color values

HEX#7F2227
RGBrgb(127, 34, 39)
HSLhsl(357, 58%, 32%)
HSVhsv(357, 73%, 50%)
CMYKcmyk(0%, 73.2%, 69.3%, 50.2%)
CIE-LABlab(28.91, 40.00, 20.37)
CIE-LCHlch(28.91, 44.89, 26.99°)
OKLaboklab(40.27% 0.1177 0.0479)
OKLCHoklch(40.27% 0.127 22.1)
XYZxyz(9.6917, 5.8040, 2.5290)
Luminance0.0580 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2227 #227F7A
analogous
#7F2256 #7F2227 #7F4C22
triadic
#7F2227 #277F22 #22277F
tetradic
#7F2227 #567F22 #227F7A #4C227F
square
#7F2227 #567F22 #227F7A #4C227F
split-complementary
#7F2227 #227F4C #22567F
monochromatic
#1E0809 #4F1518 #7F2227 #AF2F36 #CF4C53

Accessibility & contrast

On white

9.72
#7F2227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2227
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2227#FFFFFF#000000##FFFFFF
##7F22271.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3826
Deuteranopia (green-blind)
#534B24
Tritanopia (blue-blind)
#8C0425
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f2227;
/* rgb */ color: rgb(127, 34, 39);
/* oklch */ color: oklch(40.3% 0.127 22.1);
Tailwind
colors: {
  custom: {
    50: '#ab6461',
    500: '#7f2227',
    950: '#000000',
  },
}
SCSS
$custom: #7f2227;
$custom-light: #ab6461;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2227",
  "rgb": {
    "r": 127,
    "g": 34,
    "b": 39
  },
  "hsl": {
    "h": 356.774,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40266,
    "c": 0.12707,
    "h": 22.1
  },
  "luminance": 0.05803
}

Semantic roles & 50–950 ramp

primary
#7F2227
secondary
#4BB2AC
accent
#E1D947
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110605
muted
#807A79

Preview Lab

Preview with #7F2227

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

Preview Lab → · Contrast checker → · Palette generator →

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