#62198B#62198B

#62198B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.176 H 309.3°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#62198B
RGBrgb(98, 25, 139)
HSLhsl(278, 70%, 32%)
HSVhsv(278, 82%, 55%)
CMYKcmyk(29.5%, 82%, 0%, 45.5%)
CIE-LABlab(27.18, 50.29, -47.84)
CIE-LCHlch(27.18, 69.41, 316.43°)
OKLaboklab(39.51% 0.1113 -0.1359)
OKLCHoklch(39.51% 0.176 309.3)
XYZxyz(10.0439, 5.1562, 24.8872)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62198B #428B19
analogous
#29198B #62198B #8B197B
triadic
#62198B #8B6219 #198B62
tetradic
#62198B #8B2919 #428B19 #197B8B
square
#62198B #8B2919 #428B19 #197B8B
split-complementary
#62198B #7B8B19 #198B29
monochromatic
#190623 #3D1057 #62198B #8722BF #A541DD

Accessibility & contrast

On white

10.34
#62198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#62198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62198B
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62198B#FFFFFF#000000##FFFFFF
##62198B1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#5C3753
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #62198b;
/* rgb */ color: rgb(98, 25, 139);
/* oklch */ color: oklch(39.5% 0.176 309.3);
Tailwind
colors: {
  custom: {
    50: '#9360ae',
    500: '#62198b',
    950: '#000000',
  },
}
SCSS
$custom: #62198b;
$custom-light: #9360ae;
$custom-dark: #000000;
JSON
{
  "hex": "#62198b",
  "rgb": {
    "r": 98,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 278.421,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39505,
    "c": 0.17567,
    "h": 309.3
  },
  "luminance": 0.05156
}

Semantic roles & 50–950 ramp

primary
#62198B
secondary
#6FBE42
accent
#EC3B7B
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #62198B

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

Preview Lab → · Contrast checker → · Palette generator →

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