#62168D#62168D

#62168D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.180 H 308.9°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#62168D
RGBrgb(98, 22, 141)
HSLhsl(278, 73%, 32%)
HSVhsv(278, 84%, 55%)
CMYKcmyk(30.5%, 84.4%, 0%, 44.7%)
CIE-LABlab(27.00, 51.72, -49.37)
CIE-LCHlch(27.00, 71.50, 316.33°)
OKLaboklab(39.43% 0.1131 -0.1404)
OKLCHoklch(39.43% 0.18 308.9)
XYZxyz(10.1306, 5.0938, 25.6437)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62168D #418D16
analogous
#26168D #62168D #8D167D
triadic
#62168D #8D6216 #168D62
tetradic
#62168D #8D2616 #418D16 #167D8D
square
#62168D #8D2616 #418D16 #167D8D
split-complementary
#62168D #7D8D16 #168D26
monochromatic
#180523 #3D0E58 #62168D #871EC2 #A53DE1

Accessibility & contrast

On white

10.40
#62168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#62168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62168D
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62168D#FFFFFF#000000##FFFFFF
##62168D1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#5B3653
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #62168d;
/* rgb */ color: rgb(98, 22, 141);
/* oklch */ color: oklch(39.4% 0.180 308.9);
Tailwind
colors: {
  custom: {
    50: '#945faf',
    500: '#62168d',
    950: '#000000',
  },
}
SCSS
$custom: #62168d;
$custom-light: #945faf;
$custom-dark: #000000;
JSON
{
  "hex": "#62168d",
  "rgb": {
    "r": 98,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 278.319,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39435,
    "c": 0.18024,
    "h": 308.9
  },
  "luminance": 0.05094
}

Semantic roles & 50–950 ramp

primary
#62168D
secondary
#6DC13E
accent
#F0387A
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #62168D

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

Preview Lab → · Contrast checker → · Palette generator →

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