#62158E#62158E

#62158E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.182 H 308.6°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#62158E
RGBrgb(98, 21, 142)
HSLhsl(278, 74%, 32%)
HSVhsv(278, 85%, 56%)
CMYKcmyk(31%, 85.2%, 0%, 44.3%)
CIE-LABlab(26.98, 52.25, -50.03)
CIE-LCHlch(26.98, 72.34, 316.24°)
OKLaboklab(39.45% 0.1135 -0.1423)
OKLCHoklch(39.45% 0.182 308.6)
XYZxyz(10.1866, 5.0862, 26.0310)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62158E #418E15
analogous
#26158E #62158E #8E157E
triadic
#62158E #8E6215 #158E62
tetradic
#62158E #8E2615 #418E15 #157E8E
square
#62158E #8E2615 #418E15 #157E8E
split-complementary
#62158E #7E8E15 #158E26
monochromatic
#180523 #3D0D59 #62158E #871DC3 #A53BE2

Accessibility & contrast

On white

10.41
#62158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#62158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62158E
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62158E#FFFFFF#000000##FFFFFF
##62158E1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#5B3654
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #62158e;
/* rgb */ color: rgb(98, 21, 142);
/* oklch */ color: oklch(39.4% 0.182 308.6);
Tailwind
colors: {
  custom: {
    50: '#945eb0',
    500: '#62158e',
    950: '#000000',
  },
}
SCSS
$custom: #62158e;
$custom-light: #945eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#62158e",
  "rgb": {
    "r": 98,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 278.182,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39446,
    "c": 0.182,
    "h": 308.6
  },
  "luminance": 0.05086
}

Semantic roles & 50–950 ramp

primary
#62158E
secondary
#6DC23D
accent
#F1377B
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #62158E

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

Preview Lab → · Contrast checker → · Palette generator →

#62158E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva