#7E2138#7E2138

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

Color values

HEX#7E2138
RGBrgb(126, 33, 56)
HSLhsl(345, 58%, 31%)
HSVhsv(345, 74%, 49%)
CMYKcmyk(0%, 73.8%, 55.6%, 50.6%)
CIE-LABlab(28.93, 41.30, 9.13)
CIE-LCHlch(28.93, 42.30, 12.47°)
OKLaboklab(40.36% 0.1252 0.0232)
OKLCHoklch(40.36% 0.127 10.5)
XYZxyz(9.8627, 5.8102, 4.3427)
Luminance0.0581 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2138 #217E67
analogous
#7E2166 #7E2138 #7E3821
triadic
#7E2138 #387E21 #21387E
tetradic
#7E2138 #667E21 #217E67 #38217E
square
#7E2138 #667E21 #217E67 #38217E
split-complementary
#7E2138 #217E38 #21667E
monochromatic
#1D080D #4E1422 #7E2138 #AE2E4E #D04A6B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2138#FFFFFF#000000##FFFFFF
##7E21381.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)
#383838
Deuteranopia (green-blind)
#504B36
Tritanopia (blue-blind)
#8A0C2A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e2138;
/* rgb */ color: rgb(126, 33, 56);
/* oklch */ color: oklch(40.4% 0.127 10.5);
Tailwind
colors: {
  custom: {
    50: '#a9646e',
    500: '#7e2138',
    950: '#000000',
  },
}
SCSS
$custom: #7e2138;
$custom-light: #a9646e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2138",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 56
  },
  "hsl": {
    "h": 345.161,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40358,
    "c": 0.12732,
    "h": 10.5
  },
  "luminance": 0.05809
}

Semantic roles & 50–950 ramp

primary
#7E2138
secondary
#4AB197
accent
#E2BB46
background
#FAF6F6
surface
#F5EBEB
border
#CFC6C6
text
#110607
muted
#807A7A

Preview Lab

Preview with #7E2138

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

Preview Lab → · Contrast checker → · Palette generator →

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