#62228F#62228F

#62228F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.170 H 307.0°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#62228F
RGBrgb(98, 34, 143)
HSLhsl(275, 62%, 35%)
HSVhsv(275, 76%, 56%)
CMYKcmyk(31.5%, 76.2%, 0%, 43.9%)
CIE-LABlab(28.71, 47.72, -47.84)
CIE-LCHlch(28.71, 67.57, 314.93°)
OKLaboklab(40.68% 0.1024 -0.1359)
OKLCHoklch(40.68% 0.17 307)
XYZxyz(10.5659, 5.7240, 26.5295)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62228F #4F8F22
analogous
#2B228F #62228F #8F2286
triadic
#62228F #8F6222 #228F62
tetradic
#62228F #8F2B22 #4F8F22 #22868F
square
#62228F #8F2B22 #4F8F22 #22868F
split-complementary
#62228F #868F22 #228F2B
monochromatic
#1E0A2C #40165E #62228F #842EC0 #A155D7

Accessibility & contrast

On white

9.79
#62228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#62228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62228F
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62228F#FFFFFF#000000##FFFFFF
##62228F1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#5A3C57
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #62228f;
/* rgb */ color: rgb(98, 34, 143);
/* oklch */ color: oklch(40.7% 0.170 307.0);
Tailwind
colors: {
  custom: {
    50: '#9364b1',
    500: '#62228f',
    950: '#000000',
  },
}
SCSS
$custom: #62228f;
$custom-light: #9364b1;
$custom-dark: #000000;
JSON
{
  "hex": "#62228f",
  "rgb": {
    "r": 98,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 275.229,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4068,
    "c": 0.17019,
    "h": 307
  },
  "luminance": 0.05724
}

Semantic roles & 50–950 ramp

primary
#62228F
secondary
#7DBA52
accent
#E54386
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #62228F

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

Preview Lab → · Contrast checker → · Palette generator →

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