#62158F#62158F

#62158F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.183 H 308.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#62158F
RGBrgb(98, 21, 143)
HSLhsl(278, 74%, 32%)
HSVhsv(278, 85%, 56%)
CMYKcmyk(31.5%, 85.3%, 0%, 43.9%)
CIE-LABlab(27.06, 52.47, -50.51)
CIE-LCHlch(27.06, 72.83, 316.09°)
OKLaboklab(39.53% 0.1132 -0.1437)
OKLCHoklch(39.53% 0.183 308.2)
XYZxyz(10.2620, 5.1163, 26.4282)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62158F #428F15
analogous
#25158F #62158F #8F157F
triadic
#62158F #8F6215 #158F62
tetradic
#62158F #8F2515 #428F15 #157F8F
square
#62158F #8F2515 #428F15 #157F8F
split-complementary
#62158F #7F8F15 #158F25
monochromatic
#190524 #3D0D5A #62158F #871DC4 #A53CE2

Accessibility & contrast

On white

10.38
#62158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #62158F
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62158F#FFFFFF#000000##FFFFFF
##62158F1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#5B3754
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #62158f;
/* rgb */ color: rgb(98, 21, 143);
/* oklch */ color: oklch(39.5% 0.183 308.2);
Tailwind
colors: {
  custom: {
    50: '#945fb1',
    500: '#62158f',
    950: '#000000',
  },
}
SCSS
$custom: #62158f;
$custom-light: #945fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#62158f",
  "rgb": {
    "r": 98,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 277.869,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39531,
    "c": 0.18292,
    "h": 308.2
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#62158F
secondary
#6FC23E
accent
#F1377B
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0511
muted
#7E7980

Preview Lab

Preview with #62158F

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

Preview Lab → · Contrast checker → · Palette generator →

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