#62168F#62168F

#62168F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.182 H 308.2°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#62168F
RGBrgb(98, 22, 143)
HSLhsl(278, 73%, 32%)
HSVhsv(278, 85%, 56%)
CMYKcmyk(31.5%, 84.6%, 0%, 43.9%)
CIE-LABlab(27.17, 52.16, -50.34)
CIE-LCHlch(27.17, 72.49, 316.02°)
OKLaboklab(39.6% 0.1125 -0.1432)
OKLCHoklch(39.6% 0.182 308.2)
XYZxyz(10.2808, 5.1538, 26.4345)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62168F #438F16
analogous
#26168F #62168F #8F167F
triadic
#62168F #8F6216 #168F62
tetradic
#62168F #8F2616 #438F16 #167F8F
square
#62168F #8F2616 #438F16 #167F8F
split-complementary
#62168F #7F8F16 #168F26
monochromatic
#190625 #3E0E5A #62168F #861EC4 #A53EE1

Accessibility & contrast

On white

10.34
#62168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#62168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62168F
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62168F#FFFFFF#000000##FFFFFF
##62168F1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #62168f;
/* rgb */ color: rgb(98, 22, 143);
/* oklch */ color: oklch(39.6% 0.182 308.2);
Tailwind
colors: {
  custom: {
    50: '#945fb1',
    500: '#62168f',
    950: '#000000',
  },
}
SCSS
$custom: #62168f;
$custom-light: #945fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#62168f",
  "rgb": {
    "r": 98,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 277.686,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39604,
    "c": 0.1821,
    "h": 308.2
  },
  "luminance": 0.05154
}

Semantic roles & 50–950 ramp

primary
#62168F
secondary
#70C13F
accent
#F0387C
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #62168F

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

Preview Lab → · Contrast checker → · Palette generator →

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