#7D2138#7D2138

#7D2138 is a dark, vivid red. Relative luminance 0.057; OKLCH L 40.2% C 0.126 H 10.2°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#7D2138
RGBrgb(125, 33, 56)
HSLhsl(345, 58%, 31%)
HSVhsv(345, 74%, 49%)
CMYKcmyk(0%, 73.6%, 55.2%, 51%)
CIE-LABlab(28.73, 40.97, 8.83)
CIE-LCHlch(28.73, 41.91, 12.16°)
OKLaboklab(40.18% 0.1243 0.0224)
OKLCHoklch(40.18% 0.126 10.2)
XYZxyz(9.7160, 5.7345, 4.3359)
Luminance0.0573 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2138 #217D66
analogous
#7D2166 #7D2138 #7D3821
triadic
#7D2138 #387D21 #21387D
tetradic
#7D2138 #667D21 #217D66 #38217D
square
#7D2138 #667D21 #217D66 #38217D
split-complementary
#7D2138 #217D38 #21667D
monochromatic
#1C070D #4D1422 #7D2138 #AD2E4E #CF496B

Accessibility & contrast

On white

9.78
#7D2138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7D2138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2138
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2138#FFFFFF#000000##FFFFFF
##7D21381.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383838
Deuteranopia (green-blind)
#504B36
Tritanopia (blue-blind)
#890D2A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7d2138;
/* rgb */ color: rgb(125, 33, 56);
/* oklch */ color: oklch(40.2% 0.126 10.2);
Tailwind
colors: {
  custom: {
    50: '#a8646e',
    500: '#7d2138',
    950: '#000000',
  },
}
SCSS
$custom: #7d2138;
$custom-light: #a8646e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2138",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 56
  },
  "hsl": {
    "h": 345,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40176,
    "c": 0.12627,
    "h": 10.2
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#7D2138
secondary
#4AB096
accent
#E1BB46
background
#FAF6F6
surface
#F4EBEB
border
#CEC6C6
text
#100607
muted
#7F7A7A

Preview Lab

Preview with #7D2138

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

Preview Lab → · Contrast checker → · Palette generator →

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