#28062A#28062A

#28062A is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.6% C 0.078 H 325.6°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#28062A
RGBrgb(40, 6, 42)
HSLhsl(297, 75%, 9%)
HSVhsv(297, 86%, 16%)
CMYKcmyk(4.8%, 85.7%, 0%, 83.5%)
CIE-LABlab(6.76, 23.22, -15.74)
CIE-LCHlch(6.76, 28.05, 325.86°)
OKLaboklab(20.58% 0.0644 -0.0441)
OKLCHoklch(20.58% 0.078 325.6)
XYZxyz(1.3581, 0.7486, 2.2630)
Luminance0.0075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28062A #082A06
analogous
#16062A #28062A #2A061A
triadic
#28062A #2A2806 #062A28
tetradic
#28062A #2A1606 #082A06 #061A2A
square
#28062A #2A1606 #082A06 #061A2A
split-complementary
#28062A #1A2A06 #062A16
monochromatic
#1A041B #1A041B #28062A #5B0E60 #8E1595

Accessibility & contrast

On white

18.26
#28062A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28062A
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28062A#FFFFFF#000000##FFFFFF
##28062A1.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01122B
Deuteranopia (green-blind)
#0D1629
Tritanopia (blue-blind)
#290B17
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #28062a;
/* rgb */ color: rgb(40, 6, 42);
/* oklch */ color: oklch(20.6% 0.078 325.6);
Tailwind
colors: {
  custom: {
    50: '#634963',
    500: '#28062a',
    950: '#000000',
  },
}
SCSS
$custom: #28062a;
$custom-light: #634963;
$custom-dark: #000000;
JSON
{
  "hex": "#28062a",
  "rgb": {
    "r": 40,
    "g": 6,
    "b": 42
  },
  "hsl": {
    "h": 296.667,
    "s": 75,
    "l": 9.412
  },
  "oklch": {
    "l": 0.20582,
    "c": 0.07802,
    "h": 325.6
  },
  "luminance": 0.00749
}

Semantic roles & 50–950 ramp

primary
#28062A
secondary
#256B21
accent
#F23641
background
#F6F4F5
surface
#EBE7EA
border
#C6C3C6
text
#050105
muted
#7A7779

Preview Lab

Preview with #28062A

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

Preview Lab → · Contrast checker → · Palette generator →

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