#62187D#62187D

#62187D is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.3% C 0.163 H 314.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#62187D
RGBrgb(98, 24, 125)
HSLhsl(284, 68%, 29%)
HSVhsv(284, 81%, 49%)
CMYKcmyk(21.6%, 80.8%, 0%, 51%)
CIE-LABlab(25.95, 47.61, -41.04)
CIE-LCHlch(25.95, 62.85, 319.24°)
OKLaboklab(38.3% 0.1153 -0.1159)
OKLCHoklch(38.3% 0.163 314.8)
XYZxyz(9.0647, 4.7309, 19.8337)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62187D #337D18
analogous
#2F187D #62187D #7D1866
triadic
#62187D #7D6218 #187D62
tetradic
#62187D #7D2F18 #337D18 #18667D
square
#62187D #7D2F18 #337D18 #18667D
split-complementary
#62187D #667D18 #187D2F
monochromatic
#14051A #3A0E4A #62187D #8A22B0 #AD37D9

Accessibility & contrast

On white

10.79
#62187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#62187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62187D
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62187D#FFFFFF#000000##FFFFFF
##62187D1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#123F7B
Tritanopia (blue-blind)
#60304A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #62187d;
/* rgb */ color: rgb(98, 24, 125);
/* oklch */ color: oklch(38.3% 0.163 314.8);
Tailwind
colors: {
  custom: {
    50: '#925fa3',
    500: '#62187d',
    950: '#000000',
  },
}
SCSS
$custom: #62187d;
$custom-light: #925fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#62187d",
  "rgb": {
    "r": 98,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 283.96,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38303,
    "c": 0.16346,
    "h": 314.8
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#62187D
secondary
#5EB23F
accent
#EB3D6C
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #62187D

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

Preview Lab → · Contrast checker → · Palette generator →

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