#602796#602796

#602796 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.171 H 302.9°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#602796
RGBrgb(96, 39, 150)
HSLhsl(271, 59%, 37%)
HSVhsv(271, 74%, 59%)
CMYKcmyk(36%, 74%, 0%, 41.2%)
CIE-LABlab(29.76, 46.80, -50.44)
CIE-LCHlch(29.76, 68.81, 312.86°)
OKLaboklab(41.54% 0.0931 -0.1437)
OKLCHoklch(41.54% 0.171 302.9)
XYZxyz(11.0531, 6.1398, 29.4510)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#602796 #5D9627
analogous
#292796 #602796 #962795
triadic
#602796 #966027 #279660
tetradic
#602796 #962927 #5D9627 #279596
square
#602796 #962927 #5D9627 #279596
split-complementary
#602796 #959627 #279629
monochromatic
#220E35 #411A65 #602796 #7F34C7 #9D61D6

Accessibility & contrast

On white

9.43
#602796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#602796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #602796
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##602796#FFFFFF#000000##FFFFFF
##6027961.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004694
Tritanopia (blue-blind)
#55425C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #602796;
/* rgb */ color: rgb(96, 39, 150);
/* oklch */ color: oklch(41.5% 0.171 302.9);
Tailwind
colors: {
  custom: {
    50: '#9267b6',
    500: '#602796',
    950: '#000000',
  },
}
SCSS
$custom: #602796;
$custom-light: #9267b6;
$custom-dark: #000000;
JSON
{
  "hex": "#602796",
  "rgb": {
    "r": 96,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 270.811,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41542,
    "c": 0.17124,
    "h": 302.9
  },
  "luminance": 0.0614
}

Semantic roles & 50–950 ramp

primary
#602796
secondary
#8BBC5D
accent
#E24692
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #602796

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

Preview Lab → · Contrast checker → · Palette generator →

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