#602797#602797

#602797 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.172 H 302.6°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#602797
RGBrgb(96, 39, 151)
HSLhsl(271, 59%, 37%)
HSVhsv(271, 74%, 59%)
CMYKcmyk(36.4%, 74.2%, 0%, 40.8%)
CIE-LABlab(29.84, 47.05, -50.92)
CIE-LCHlch(29.84, 69.33, 312.74°)
OKLaboklab(41.62% 0.0929 -0.1451)
OKLCHoklch(41.62% 0.172 302.6)
XYZxyz(11.1340, 6.1722, 29.8769)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#602797 #5E9727
analogous
#282797 #602797 #972796
triadic
#602797 #976027 #279760
tetradic
#602797 #972827 #5E9727 #279697
square
#602797 #972827 #5E9727 #279697
split-complementary
#602797 #969727 #279728
monochromatic
#220E36 #411A66 #602797 #7F34C8 #9D62D6

Accessibility & contrast

On white

9.40
#602797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #602797
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##602797#FFFFFF#000000##FFFFFF
##6027971.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#55435D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #602797;
/* rgb */ color: rgb(96, 39, 151);
/* oklch */ color: oklch(41.6% 0.172 302.6);
Tailwind
colors: {
  custom: {
    50: '#9267b6',
    500: '#602797',
    950: '#000000',
  },
}
SCSS
$custom: #602797;
$custom-light: #9267b6;
$custom-dark: #000000;
JSON
{
  "hex": "#602797",
  "rgb": {
    "r": 96,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 270.536,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41624,
    "c": 0.17232,
    "h": 302.6
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#602797
secondary
#8CBC5E
accent
#E24693
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #602797

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

Preview Lab → · Contrast checker → · Palette generator →

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