#62158D#62158D

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

Color values

HEX#62158D
RGBrgb(98, 21, 141)
HSLhsl(279, 74%, 32%)
HSVhsv(279, 85%, 55%)
CMYKcmyk(30.5%, 85.1%, 0%, 44.7%)
CIE-LABlab(26.89, 52.03, -49.54)
CIE-LCHlch(26.89, 71.84, 316.40°)
OKLaboklab(39.36% 0.1138 -0.1409)
OKLCHoklch(39.36% 0.181 308.9)
XYZxyz(10.1119, 5.0563, 25.6374)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#62158D #408D15
analogous
#26158D #62158D #8D157C
triadic
#62158D #8D6215 #158D62
tetradic
#62158D #8D2615 #408D15 #157C8D
square
#62158D #8D2615 #408D15 #157C8D
split-complementary
#62158D #7C8D15 #158D26
monochromatic
#180522 #3D0D58 #62158D #871DC2 #A63BE2

Accessibility & contrast

On white

10.44
#62158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#62158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #62158D
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##62158D#FFFFFF#000000##FFFFFF
##62158D1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#5B3653
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #62158d;
/* rgb */ color: rgb(98, 21, 141);
/* oklch */ color: oklch(39.4% 0.181 308.9);
Tailwind
colors: {
  custom: {
    50: '#945eaf',
    500: '#62158d',
    950: '#000000',
  },
}
SCSS
$custom: #62158d;
$custom-light: #945eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#62158d",
  "rgb": {
    "r": 98,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 278.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39361,
    "c": 0.18107,
    "h": 308.9
  },
  "luminance": 0.05056
}

Semantic roles & 50–950 ramp

primary
#62158D
secondary
#6CC13D
accent
#F1377A
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0E0510
muted
#7E797F

Preview Lab

Preview with #62158D

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

Preview Lab → · Contrast checker → · Palette generator →

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