#28072A#28072A

#28072A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.7% C 0.076 H 325.5°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#28072A
RGBrgb(40, 7, 42)
HSLhsl(297, 71%, 10%)
HSVhsv(297, 83%, 16%)
CMYKcmyk(4.8%, 83.3%, 0%, 83.5%)
CIE-LABlab(6.96, 22.69, -15.43)
CIE-LCHlch(6.96, 27.44, 325.78°)
OKLaboklab(20.74% 0.0627 -0.0431)
OKLCHoklch(20.74% 0.076 325.5)
XYZxyz(1.3689, 0.7703, 2.2666)
Luminance0.0077 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28072A #092A07
analogous
#17072A #28072A #2A071B
triadic
#28072A #2A2807 #072A28
tetradic
#28072A #2A1707 #092A07 #071B2A
square
#28072A #2A1707 #092A07 #071B2A
split-complementary
#28072A #1B2A07 #072A17
monochromatic
#19041A #19041A #28072A #5A105E #8C1893

Accessibility & contrast

On white

18.20
#28072A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#28072A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28072A
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28072A#FFFFFF#000000##FFFFFF
##28072A1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02132B
Deuteranopia (green-blind)
#0E1729
Tritanopia (blue-blind)
#290C17
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #28072a;
/* rgb */ color: rgb(40, 7, 42);
/* oklch */ color: oklch(20.7% 0.076 325.5);
Tailwind
colors: {
  custom: {
    50: '#634a63',
    500: '#28072a',
    950: '#000000',
  },
}
SCSS
$custom: #28072a;
$custom-light: #634a63;
$custom-dark: #000000;
JSON
{
  "hex": "#28072a",
  "rgb": {
    "r": 40,
    "g": 7,
    "b": 42
  },
  "hsl": {
    "h": 296.571,
    "s": 71.429,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20738,
    "c": 0.07605,
    "h": 325.5
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#28072A
secondary
#276A23
accent
#EE3A44
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#050105
muted
#7A7779

Preview Lab

Preview with #28072A

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

Preview Lab → · Contrast checker → · Palette generator →

#28072A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva