#62158A#62158A

#62158A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.178 H 310.0°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#62158A
RGBrgb(98, 21, 138)
HSLhsl(279, 74%, 31%)
HSVhsv(279, 85%, 54%)
CMYKcmyk(29%, 84.8%, 0%, 45.9%)
CIE-LABlab(26.64, 51.38, -48.09)
CIE-LCHlch(26.64, 70.37, 316.90°)
OKLaboklab(39.11% 0.1146 -0.1366)
OKLCHoklch(39.11% 0.178 310)
XYZxyz(9.8917, 4.9682, 24.4777)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62158A #3D8A15
analogous
#27158A #62158A #8A1577
triadic
#62158A #8A6215 #158A62
tetradic
#62158A #8A2715 #3D8A15 #15778A
square
#62158A #8A2715 #3D8A15 #15778A
split-complementary
#62158A #778A15 #158A27
monochromatic
#170520 #3C0D55 #62158A #881DBF #A739E1

Accessibility & contrast

On white

10.53
#62158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#62158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62158A
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62158A#FFFFFF#000000##FFFFFF
##62158A1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#5C3451
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #62158a;
/* rgb */ color: rgb(98, 21, 138);
/* oklch */ color: oklch(39.1% 0.178 310.0);
Tailwind
colors: {
  custom: {
    50: '#935ead',
    500: '#62158a',
    950: '#000000',
  },
}
SCSS
$custom: #62158a;
$custom-light: #935ead;
$custom-dark: #000000;
JSON
{
  "hex": "#62158a",
  "rgb": {
    "r": 98,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 279.487,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39109,
    "c": 0.1783,
    "h": 310
  },
  "luminance": 0.04968
}

Semantic roles & 50–950 ramp

primary
#62158A
secondary
#69BE3D
accent
#F03877
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #62158A

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

Preview Lab → · Contrast checker → · Palette generator →

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