#62168A#62168A

#62168A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.177 H 309.9°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#62168A
RGBrgb(98, 22, 138)
HSLhsl(279, 73%, 31%)
HSVhsv(279, 84%, 54%)
CMYKcmyk(29%, 84.1%, 0%, 45.9%)
CIE-LABlab(26.75, 51.06, -47.91)
CIE-LCHlch(26.75, 70.02, 316.82°)
OKLaboklab(39.18% 0.1139 -0.1361)
OKLCHoklch(39.18% 0.177 309.9)
XYZxyz(9.9104, 5.0057, 24.4839)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62168A #3E8A16
analogous
#28168A #62168A #8A1678
triadic
#62168A #8A6216 #168A62
tetradic
#62168A #8A2816 #3E8A16 #16788A
square
#62168A #8A2816 #3E8A16 #16788A
split-complementary
#62168A #788A16 #168A28
monochromatic
#170520 #3D0E55 #62168A #871EBF #A73BE0

Accessibility & contrast

On white

10.49
#62168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#62168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62168A
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62168A#FFFFFF#000000##FFFFFF
##62168A1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#5C3552
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #62168a;
/* rgb */ color: rgb(98, 22, 138);
/* oklch */ color: oklch(39.2% 0.177 309.9);
Tailwind
colors: {
  custom: {
    50: '#935fad',
    500: '#62168a',
    950: '#000000',
  },
}
SCSS
$custom: #62168a;
$custom-light: #935fad;
$custom-dark: #000000;
JSON
{
  "hex": "#62168a",
  "rgb": {
    "r": 98,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 279.31,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39184,
    "c": 0.17745,
    "h": 309.9
  },
  "luminance": 0.05005
}

Semantic roles & 50–950 ramp

primary
#62168A
secondary
#6ABE3E
accent
#EF3978
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #62168A

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

Preview Lab → · Contrast checker → · Palette generator →

#62168A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva