#62168E#62168E

#62168E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.181 H 308.5°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#62168E
RGBrgb(98, 22, 142)
HSLhsl(278, 73%, 32%)
HSVhsv(278, 85%, 56%)
CMYKcmyk(31%, 84.5%, 0%, 44.3%)
CIE-LABlab(27.08, 51.94, -49.86)
CIE-LCHlch(27.08, 72.00, 316.17°)
OKLaboklab(39.52% 0.1128 -0.1418)
OKLCHoklch(39.52% 0.181 308.5)
XYZxyz(10.2054, 5.1237, 26.0373)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62168E #428E16
analogous
#26168E #62168E #8E167E
triadic
#62168E #8E6216 #168E62
tetradic
#62168E #8E2616 #428E16 #167E8E
square
#62168E #8E2616 #428E16 #167E8E
split-complementary
#62168E #7E8E16 #168E26
monochromatic
#190624 #3D0E59 #62168E #871EC3 #A53DE1

Accessibility & contrast

On white

10.37
#62168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #62168E
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62168E#FFFFFF#000000##FFFFFF
##62168E1.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#5B3754
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #62168e;
/* rgb */ color: rgb(98, 22, 142);
/* oklch */ color: oklch(39.5% 0.181 308.5);
Tailwind
colors: {
  custom: {
    50: '#945fb0',
    500: '#62168e',
    950: '#000000',
  },
}
SCSS
$custom: #62168e;
$custom-light: #945fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#62168e",
  "rgb": {
    "r": 98,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 278,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39519,
    "c": 0.18117,
    "h": 308.5
  },
  "luminance": 0.05123
}

Semantic roles & 50–950 ramp

primary
#62168E
secondary
#6FC13F
accent
#F0387B
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #62168E

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

Preview Lab → · Contrast checker → · Palette generator →

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