#62187C#62187C

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

Color values

HEX#62187C
RGBrgb(98, 24, 124)
HSLhsl(284, 68%, 29%)
HSVhsv(284, 81%, 49%)
CMYKcmyk(21%, 80.6%, 0%, 51.4%)
CIE-LABlab(25.88, 47.39, -40.53)
CIE-LCHlch(25.88, 62.36, 319.47°)
OKLaboklab(38.23% 0.1155 -0.1144)
OKLCHoklch(38.23% 0.163 315.3)
XYZxyz(9.0011, 4.7055, 19.4990)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62187C #327C18
analogous
#30187C #62187C #7C1864
triadic
#62187C #7C6218 #187C62
tetradic
#62187C #7C3018 #327C18 #18647C
square
#62187C #7C3018 #327C18 #18647C
split-complementary
#62187C #647C18 #187C30
monochromatic
#14051A #390E49 #62187C #8B22AF #AE36D8

Accessibility & contrast

On white

10.82
#62187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#62187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62187C
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62187C#FFFFFF#000000##FFFFFF
##62187C1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#143F7A
Tritanopia (blue-blind)
#602F4A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #62187c;
/* rgb */ color: rgb(98, 24, 124);
/* oklch */ color: oklch(38.2% 0.163 315.3);
Tailwind
colors: {
  custom: {
    50: '#925fa3',
    500: '#62187c',
    950: '#000000',
  },
}
SCSS
$custom: #62187c;
$custom-light: #925fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#62187c",
  "rgb": {
    "r": 98,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 284.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.38227,
    "c": 0.16252,
    "h": 315.3
  },
  "luminance": 0.04705
}

Semantic roles & 50–950 ramp

primary
#62187C
secondary
#5DB13F
accent
#EA3D6A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #62187C

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

Preview Lab → · Contrast checker → · Palette generator →

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