#602788#602788

#602788 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.156 H 307.7°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#602788
RGBrgb(96, 39, 136)
HSLhsl(275, 55%, 34%)
HSVhsv(275, 71%, 53%)
CMYKcmyk(29.4%, 71.3%, 0%, 46.7%)
CIE-LABlab(28.68, 43.38, -43.55)
CIE-LCHlch(28.68, 61.47, 314.89°)
OKLaboklab(40.44% 0.0955 -0.1234)
OKLCHoklch(40.44% 0.156 307.7)
XYZxyz(9.9924, 5.7155, 23.8646)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#602788 #4F8827
analogous
#302788 #602788 #882780
triadic
#602788 #886027 #278860
tetradic
#602788 #883027 #4F8827 #278088
square
#602788 #883027 #4F8827 #278088
split-complementary
#602788 #808827 #278830
monochromatic
#1D0C29 #3E1958 #602788 #8235B8 #9F5AD0

Accessibility & contrast

On white

9.80
#602788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#602788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #602788
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##602788#FFFFFF#000000##FFFFFF
##6027881.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#0E4486
Tritanopia (blue-blind)
#5A3D54
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #602788;
/* rgb */ color: rgb(96, 39, 136);
/* oklch */ color: oklch(40.4% 0.156 307.7);
Tailwind
colors: {
  custom: {
    50: '#9166ab',
    500: '#602788',
    950: '#000000',
  },
}
SCSS
$custom: #602788;
$custom-light: #9166ab;
$custom-dark: #000000;
JSON
{
  "hex": "#602788",
  "rgb": {
    "r": 96,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 275.258,
    "s": 55.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40435,
    "c": 0.15606,
    "h": 307.7
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#602788
secondary
#7DB556
accent
#DF4987
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #602788

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

Preview Lab → · Contrast checker → · Palette generator →

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