#602897#602897

#602897 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.171 H 302.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#602897
RGBrgb(96, 40, 151)
HSLhsl(270, 58%, 37%)
HSVhsv(270, 74%, 59%)
CMYKcmyk(36.4%, 73.5%, 0%, 40.8%)
CIE-LABlab(30.01, 46.59, -50.66)
CIE-LCHlch(30.01, 68.82, 312.60°)
OKLaboklab(41.74% 0.0919 -0.1443)
OKLCHoklch(41.74% 0.171 302.5)
XYZxyz(11.1673, 6.2387, 29.8880)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#602897 #5F9728
analogous
#282897 #602897 #972897
triadic
#602897 #976028 #289760
tetradic
#602897 #972828 #5F9728 #289797
square
#602897 #972828 #5F9728 #289797
split-complementary
#602897 #979728 #289728
monochromatic
#220E36 #411B67 #602897 #7F35C7 #9D64D6

Accessibility & contrast

On white

9.34
#602897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#602897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #602897
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##602897#FFFFFF#000000##FFFFFF
##6028971.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #602897;
/* rgb */ color: rgb(96, 40, 151);
/* oklch */ color: oklch(41.7% 0.171 302.5);
Tailwind
colors: {
  custom: {
    50: '#9267b6',
    500: '#602897',
    950: '#000000',
  },
}
SCSS
$custom: #602897;
$custom-light: #9267b6;
$custom-dark: #000000;
JSON
{
  "hex": "#602897",
  "rgb": {
    "r": 96,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 270.27,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4174,
    "c": 0.17113,
    "h": 302.5
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

primary
#602897
secondary
#8DBC5F
accent
#E14693
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #602897

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

Preview Lab → · Contrast checker → · Palette generator →

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