#62229F#62229F

#62229F is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.187 H 301.9°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#62229F
RGBrgb(98, 34, 159)
HSLhsl(271, 65%, 38%)
HSVhsv(271, 79%, 62%)
CMYKcmyk(38.4%, 78.6%, 0%, 37.6%)
CIE-LABlab(30.02, 51.53, -55.50)
CIE-LCHlch(30.02, 75.74, 312.87°)
OKLaboklab(42.01% 0.0986 -0.1585)
OKLCHoklch(42.01% 0.187 301.9)
XYZxyz(11.8655, 6.2439, 33.3742)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62229F #5F9F22
analogous
#23229F #62229F #9F229D
triadic
#62229F #9F6222 #229F62
tetradic
#62229F #9F2322 #5F9F22 #229D9F
square
#62229F #9F2322 #5F9F22 #229D9F
split-complementary
#62229F #9D9F22 #229F23
monochromatic
#240C3A #43176D #62229F #812DD1 #9F5FDD

Accessibility & contrast

On white

9.34
#62229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#62229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62229F
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62229F#FFFFFF#000000##FFFFFF
##62229F1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#554360
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #62229f;
/* rgb */ color: rgb(98, 34, 159);
/* oklch */ color: oklch(42.0% 0.187 301.9);
Tailwind
colors: {
  custom: {
    50: '#9565bc',
    500: '#62229f',
    950: '#000000',
  },
}
SCSS
$custom: #62229f;
$custom-light: #9565bc;
$custom-dark: #000000;
JSON
{
  "hex": "#62229f",
  "rgb": {
    "r": 98,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 270.72,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42013,
    "c": 0.18662,
    "h": 301.9
  },
  "luminance": 0.06244
}

Semantic roles & 50–950 ramp

primary
#62229F
secondary
#8DC15B
accent
#E84092
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #62229F

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

Preview Lab → · Contrast checker → · Palette generator →

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