#62157D#62157D

#62157D is a dark, vivid purple. Relative luminance 0.046; OKLCH L 38.1% C 0.166 H 315.1°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#62157D
RGBrgb(98, 21, 125)
HSLhsl(284, 71%, 29%)
HSVhsv(284, 83%, 49%)
CMYKcmyk(21.6%, 83.2%, 0%, 51%)
CIE-LABlab(25.61, 48.62, -41.60)
CIE-LCHlch(25.61, 63.99, 319.44°)
OKLaboklab(38.06% 0.1178 -0.1175)
OKLCHoklch(38.06% 0.166 315.1)
XYZxyz(9.0062, 4.6140, 19.8142)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62157D #307D15
analogous
#2E157D #62157D #7D1564
triadic
#62157D #7D6215 #157D62
tetradic
#62157D #7D2E15 #307D15 #15647D
square
#62157D #7D2E15 #307D15 #15647D
split-complementary
#62157D #647D15 #157D2E
monochromatic
#15041A #390C49 #62157D #8B1EB1 #B030DC

Accessibility & contrast

On white

10.92
#62157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#62157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62157D
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62157D#FFFFFF#000000##FFFFFF
##62157D1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#0E3F7B
Tritanopia (blue-blind)
#602E4A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #62157d;
/* rgb */ color: rgb(98, 21, 125);
/* oklch */ color: oklch(38.1% 0.166 315.1);
Tailwind
colors: {
  custom: {
    50: '#935da3',
    500: '#62157d',
    950: '#000000',
  },
}
SCSS
$custom: #62157d;
$custom-light: #935da3;
$custom-dark: #000000;
JSON
{
  "hex": "#62157d",
  "rgb": {
    "r": 98,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 284.423,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.38058,
    "c": 0.16639,
    "h": 315.1
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#62157D
secondary
#5AB23C
accent
#EE3A69
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #62157D

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

Preview Lab → · Contrast checker → · Palette generator →

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