#62229D#62229D

#62229D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.185 H 302.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#62229D
RGBrgb(98, 34, 157)
HSLhsl(271, 64%, 37%)
HSVhsv(271, 78%, 62%)
CMYKcmyk(37.6%, 78.3%, 0%, 38.4%)
CIE-LABlab(29.85, 51.05, -54.57)
CIE-LCHlch(29.85, 74.72, 313.09°)
OKLaboklab(41.84% 0.0991 -0.1557)
OKLCHoklch(41.84% 0.185 302.5)
XYZxyz(11.6934, 6.1750, 32.4676)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62229D #5D9D22
analogous
#25229D #62229D #9D229A
triadic
#62229D #9D6222 #229D62
tetradic
#62229D #9D2522 #5D9D22 #229A9D
square
#62229D #9D2522 #5D9D22 #229A9D
split-complementary
#62229D #9A9D22 #229D25
monochromatic
#230C38 #43176B #62229D #812DCF #9F5DDC

Accessibility & contrast

On white

9.40
#62229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#62229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62229D
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62229D#FFFFFF#000000##FFFFFF
##62229D1.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#55425F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #62229d;
/* rgb */ color: rgb(98, 34, 157);
/* oklch */ color: oklch(41.8% 0.185 302.5);
Tailwind
colors: {
  custom: {
    50: '#9465bb',
    500: '#62229d',
    950: '#000000',
  },
}
SCSS
$custom: #62229d;
$custom-light: #9465bb;
$custom-dark: #000000;
JSON
{
  "hex": "#62229d",
  "rgb": {
    "r": 98,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 271.22,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41842,
    "c": 0.18457,
    "h": 302.5
  },
  "luminance": 0.06175
}

Semantic roles & 50–950 ramp

primary
#62229D
secondary
#8BC15A
accent
#E74091
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #62229D

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

Preview Lab → · Contrast checker → · Palette generator →

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