#62157B#62157B

#62157B is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.9% C 0.165 H 315.9°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#62157B
RGBrgb(98, 21, 123)
HSLhsl(285, 71%, 28%)
HSVhsv(285, 83%, 48%)
CMYKcmyk(20.3%, 82.9%, 0%, 51.8%)
CIE-LABlab(25.45, 48.20, -40.58)
CIE-LCHlch(25.45, 63.01, 319.91°)
OKLaboklab(37.9% 0.1182 -0.1145)
OKLCHoklch(37.9% 0.165 315.9)
XYZxyz(8.8798, 4.5634, 19.1481)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62157B #2E7B15
analogous
#2F157B #62157B #7B1561
triadic
#62157B #7B6215 #157B62
tetradic
#62157B #7B2F15 #2E7B15 #15617B
square
#62157B #7B2F15 #2E7B15 #15617B
split-complementary
#62157B #617B15 #157B2F
monochromatic
#15041A #380C47 #62157B #8C1EAF #B12FDB

Accessibility & contrast

On white

10.98
#62157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#62157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62157B
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62157B#FFFFFF#000000##FFFFFF
##62157B1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#123E79
Tritanopia (blue-blind)
#602D49
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #62157b;
/* rgb */ color: rgb(98, 21, 123);
/* oklch */ color: oklch(37.9% 0.165 315.9);
Tailwind
colors: {
  custom: {
    50: '#935da2',
    500: '#62157b',
    950: '#000000',
  },
}
SCSS
$custom: #62157b;
$custom-light: #935da2;
$custom-dark: #000000;
JSON
{
  "hex": "#62157b",
  "rgb": {
    "r": 98,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 285.294,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37903,
    "c": 0.16458,
    "h": 315.9
  },
  "luminance": 0.04563
}

Semantic roles & 50–950 ramp

primary
#62157B
secondary
#58B03B
accent
#EE3A66
background
#F9F5FA
surface
#F2E9F3
border
#CCC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #62157B

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

Preview Lab → · Contrast checker → · Palette generator →

#62157B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva