#602158#602158

#602158 is a dark, moderate purple. Relative luminance 0.043; OKLCH L 36.5% C 0.116 H 333.0°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#602158
RGBrgb(96, 33, 88)
HSLhsl(308, 49%, 25%)
HSVhsv(308, 66%, 38%)
CMYKcmyk(0%, 65.6%, 8.3%, 62.4%)
CIE-LABlab(24.57, 35.97, -19.31)
CIE-LCHlch(24.57, 40.83, 331.77°)
OKLaboklab(36.49% 0.1035 -0.0528)
OKLCHoklch(36.49% 0.116 333)
XYZxyz(7.1292, 4.2796, 9.6812)
Luminance0.0428 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#602158 #216029
analogous
#482160 #602158 #602138
triadic
#602158 #586021 #215860
tetradic
#602158 #604821 #216029 #213860
square
#602158 #604821 #216029 #213860
split-complementary
#602158 #386021 #216048
monochromatic
#170815 #32112E #602158 #8E3182 #BB40AB

Accessibility & contrast

On white

11.32
#602158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#602158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #602158
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##602158#FFFFFF#000000##FFFFFF
##6021581.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F355A
Deuteranopia (green-blind)
#343E56
Tritanopia (blue-blind)
#642639
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #602158;
/* rgb */ color: rgb(96, 33, 88);
/* oklch */ color: oklch(36.5% 0.116 333.0);
Tailwind
colors: {
  custom: {
    50: '#8f6187',
    500: '#602158',
    950: '#000000',
  },
}
SCSS
$custom: #602158;
$custom-light: #8f6187;
$custom-dark: #000000;
JSON
{
  "hex": "#602158",
  "rgb": {
    "r": 96,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 307.619,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36487,
    "c": 0.11616,
    "h": 333
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#602158
secondary
#499452
accent
#D8614F
background
#F9F5F8
surface
#F1EAEF
border
#CBC6CA
text
#0D050B
muted
#7E797C

Preview Lab

Preview with #602158

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

Preview Lab → · Contrast checker → · Palette generator →

#602158 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva