#62168B#62168B

#62168B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.3% C 0.178 H 309.6°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#62168B
RGBrgb(98, 22, 139)
HSLhsl(279, 73%, 32%)
HSVhsv(279, 84%, 55%)
CMYKcmyk(29.5%, 84.2%, 0%, 45.5%)
CIE-LABlab(26.83, 51.28, -48.40)
CIE-LCHlch(26.83, 70.52, 316.66°)
OKLaboklab(39.27% 0.1136 -0.1375)
OKLCHoklch(39.27% 0.178 309.6)
XYZxyz(9.9832, 5.0348, 24.8670)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62168B #3F8B16
analogous
#27168B #62168B #8B167A
triadic
#62168B #8B6216 #168B62
tetradic
#62168B #8B2716 #3F8B16 #167A8B
square
#62168B #8B2716 #3F8B16 #167A8B
split-complementary
#62168B #7A8B16 #168B27
monochromatic
#170521 #3D0E56 #62168B #871EC0 #A63BE0

Accessibility & contrast

On white

10.46
#62168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#62168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62168B
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62168B#FFFFFF#000000##FFFFFF
##62168B1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #62168b;
/* rgb */ color: rgb(98, 22, 139);
/* oklch */ color: oklch(39.3% 0.178 309.6);
Tailwind
colors: {
  custom: {
    50: '#945fae',
    500: '#62168b',
    950: '#000000',
  },
}
SCSS
$custom: #62168b;
$custom-light: #945fae;
$custom-dark: #000000;
JSON
{
  "hex": "#62168b",
  "rgb": {
    "r": 98,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 278.974,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39267,
    "c": 0.17838,
    "h": 309.6
  },
  "luminance": 0.05035
}

Semantic roles & 50–950 ramp

primary
#62168B
secondary
#6BBF3E
accent
#EF3879
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #62168B

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

Preview Lab → · Contrast checker → · Palette generator →

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