#62157E#62157E

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

Color values

HEX#62157E
RGBrgb(98, 21, 126)
HSLhsl(284, 71%, 29%)
HSVhsv(284, 83%, 49%)
CMYKcmyk(22.2%, 83.3%, 0%, 50.6%)
CIE-LABlab(25.68, 48.82, -42.11)
CIE-LCHlch(25.68, 64.47, 319.22°)
OKLaboklab(38.14% 0.1176 -0.119)
OKLCHoklch(38.14% 0.167 314.7)
XYZxyz(9.0704, 4.6397, 20.1524)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62157E #317E15
analogous
#2E157E #62157E #7E1566
triadic
#62157E #7E6215 #157E62
tetradic
#62157E #7E2E15 #317E15 #15667E
square
#62157E #7E2E15 #317E15 #15667E
split-complementary
#62157E #667E15 #157E2E
monochromatic
#14041A #390C4A #62157E #8B1EB2 #AF31DD

Accessibility & contrast

On white

10.89
#62157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#62157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62157E
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62157E#FFFFFF#000000##FFFFFF
##62157E1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#0C3F7C
Tritanopia (blue-blind)
#5F2F4A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #62157e;
/* rgb */ color: rgb(98, 21, 126);
/* oklch */ color: oklch(38.1% 0.167 314.7);
Tailwind
colors: {
  custom: {
    50: '#935ea4',
    500: '#62157e',
    950: '#000000',
  },
}
SCSS
$custom: #62157e;
$custom-light: #935ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#62157e",
  "rgb": {
    "r": 98,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 284,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38137,
    "c": 0.1673,
    "h": 314.7
  },
  "luminance": 0.04639
}

Semantic roles & 50–950 ramp

primary
#62157E
secondary
#5CB33C
accent
#EE3A6A
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #62157E

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

Preview Lab → · Contrast checker → · Palette generator →

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