#62228B#62228B

#62228B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.166 H 308.4°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#62228B
RGBrgb(98, 34, 139)
HSLhsl(277, 61%, 34%)
HSVhsv(277, 76%, 55%)
CMYKcmyk(29.5%, 75.5%, 0%, 45.5%)
CIE-LABlab(28.39, 46.78, -45.87)
CIE-LCHlch(28.39, 65.52, 315.57°)
OKLaboklab(40.36% 0.1032 -0.1301)
OKLCHoklch(40.36% 0.166 308.4)
XYZxyz(10.2683, 5.6050, 24.9620)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62228B #4B8B22
analogous
#2D228B #62228B #8B2280
triadic
#62228B #8B6222 #228B62
tetradic
#62228B #8B2D22 #4B8B22 #22808B
square
#62228B #8B2D22 #4B8B22 #22808B
split-complementary
#62228B #808B22 #228B2D
monochromatic
#1D0A29 #3F165A #62228B #852EBC #A253D5

Accessibility & contrast

On white

9.90
#62228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#62228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62228B
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62228B#FFFFFF#000000##FFFFFF
##62228B1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004489
Tritanopia (blue-blind)
#5C3B55
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #62228b;
/* rgb */ color: rgb(98, 34, 139);
/* oklch */ color: oklch(40.4% 0.166 308.4);
Tailwind
colors: {
  custom: {
    50: '#9364ae',
    500: '#62228b',
    950: '#000000',
  },
}
SCSS
$custom: #62228b;
$custom-light: #9364ae;
$custom-dark: #000000;
JSON
{
  "hex": "#62228b",
  "rgb": {
    "r": 98,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 276.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40362,
    "c": 0.16607,
    "h": 308.4
  },
  "luminance": 0.05605
}

Semantic roles & 50–950 ramp

primary
#62228B
secondary
#79B850
accent
#E44482
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #62228B

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

Preview Lab → · Contrast checker → · Palette generator →

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