#62218E#62218E

#62218E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.170 H 307.5°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#62218E
RGBrgb(98, 33, 142)
HSLhsl(276, 62%, 34%)
HSVhsv(276, 77%, 56%)
CMYKcmyk(31%, 76.8%, 0%, 44.3%)
CIE-LABlab(28.48, 47.91, -47.59)
CIE-LCHlch(28.48, 67.52, 315.19°)
OKLaboklab(40.5% 0.1036 -0.1352)
OKLCHoklch(40.5% 0.17 307.5)
XYZxyz(10.4623, 5.6375, 26.1229)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62218E #4D8E21
analogous
#2C218E #62218E #8E2184
triadic
#62218E #8E6221 #218E62
tetradic
#62218E #8E2C21 #4D8E21 #21848E
square
#62218E #8E2C21 #4D8E21 #21848E
split-complementary
#62218E #848E21 #218E2C
monochromatic
#1D0A2B #40155C #62218E #842DC0 #A152D7

Accessibility & contrast

On white

9.87
#62218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#62218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62218E
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62218E#FFFFFF#000000##FFFFFF
##62218E1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#5B3C56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #62218e;
/* rgb */ color: rgb(98, 33, 142);
/* oklch */ color: oklch(40.5% 0.170 307.5);
Tailwind
colors: {
  custom: {
    50: '#9363b0',
    500: '#62218e',
    950: '#000000',
  },
}
SCSS
$custom: #62218e;
$custom-light: #9363b0;
$custom-dark: #000000;
JSON
{
  "hex": "#62218e",
  "rgb": {
    "r": 98,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 275.78,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40496,
    "c": 0.1703,
    "h": 307.5
  },
  "luminance": 0.05637
}

Semantic roles & 50–950 ramp

primary
#62218E
secondary
#7BBA50
accent
#E54284
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #62218E

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

Preview Lab → · Contrast checker → · Palette generator →

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