#602798#602798

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

Color values

HEX#602798
RGBrgb(96, 39, 152)
HSLhsl(270, 59%, 37%)
HSVhsv(270, 74%, 60%)
CMYKcmyk(36.8%, 74.3%, 0%, 40.4%)
CIE-LABlab(29.92, 47.30, -51.41)
CIE-LCHlch(29.92, 69.85, 312.62°)
OKLaboklab(41.71% 0.0927 -0.1465)
OKLCHoklch(41.71% 0.173 302.3)
XYZxyz(11.2155, 6.2048, 30.3064)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#602798 #5F9827
analogous
#272798 #602798 #982798
triadic
#602798 #986027 #279860
tetradic
#602798 #982727 #5F9827 #279898
square
#602798 #982727 #5F9827 #279898
split-complementary
#602798 #989827 #279827
monochromatic
#220E37 #411B67 #602798 #7F33C9 #9D63D7

Accessibility & contrast

On white

9.37
#602798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#602798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #602798
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##602798#FFFFFF#000000##FFFFFF
##6027981.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#54435D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #602798;
/* rgb */ color: rgb(96, 39, 152);
/* oklch */ color: oklch(41.7% 0.173 302.3);
Tailwind
colors: {
  custom: {
    50: '#9267b7',
    500: '#602798',
    950: '#000000',
  },
}
SCSS
$custom: #602798;
$custom-light: #9267b7;
$custom-dark: #000000;
JSON
{
  "hex": "#602798",
  "rgb": {
    "r": 96,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 270.265,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41706,
    "c": 0.1734,
    "h": 302.3
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

primary
#602798
secondary
#8DBC5E
accent
#E24593
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #602798

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

Preview Lab → · Contrast checker → · Palette generator →

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