#7F2138#7F2138

#7F2138 is a dark, vivid red. Relative luminance 0.059; OKLCH L 40.5% C 0.128 H 10.7°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#7F2138
RGBrgb(127, 33, 56)
HSLhsl(345, 59%, 31%)
HSVhsv(345, 74%, 50%)
CMYKcmyk(0%, 74%, 55.9%, 50.2%)
CIE-LABlab(29.12, 41.63, 9.43)
CIE-LCHlch(29.12, 42.68, 12.77°)
OKLaboklab(40.54% 0.1261 0.0239)
OKLCHoklch(40.54% 0.128 10.7)
XYZxyz(10.0110, 5.8866, 4.3497)
Luminance0.0588 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2138 #217F68
analogous
#7F2167 #7F2138 #7F3921
triadic
#7F2138 #387F21 #21387F
tetradic
#7F2138 #677F21 #217F68 #39217F
square
#7F2138 #677F21 #217F68 #39217F
split-complementary
#7F2138 #217F39 #21677F
monochromatic
#1E080D #4E1423 #7F2138 #B02E4D #D04A6B

Accessibility & contrast

On white

9.65
#7F2138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7F2138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2138
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2138#FFFFFF#000000##FFFFFF
##7F21381.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383838
Deuteranopia (green-blind)
#514C36
Tritanopia (blue-blind)
#8B0B2A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f2138;
/* rgb */ color: rgb(127, 33, 56);
/* oklch */ color: oklch(40.5% 0.128 10.7);
Tailwind
colors: {
  custom: {
    50: '#a9646e',
    500: '#7f2138',
    950: '#000000',
  },
}
SCSS
$custom: #7f2138;
$custom-light: #a9646e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2138",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 56
  },
  "hsl": {
    "h": 345.319,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40539,
    "c": 0.12837,
    "h": 10.7
  },
  "luminance": 0.05885
}

Semantic roles & 50–950 ramp

primary
#7F2138
secondary
#4AB298
accent
#E2BC46
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110607
muted
#807A7A

Preview Lab

Preview with #7F2138

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

Preview Lab → · Contrast checker → · Palette generator →

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