#602198#602198

#602198 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.180 H 303.1°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#602198
RGBrgb(96, 33, 152)
HSLhsl(272, 64%, 36%)
HSVhsv(272, 78%, 60%)
CMYKcmyk(36.8%, 78.3%, 0%, 40.4%)
CIE-LABlab(29.01, 49.91, -52.89)
CIE-LCHlch(29.01, 72.72, 313.34°)
OKLaboklab(41.06% 0.0983 -0.1509)
OKLCHoklch(41.06% 0.18 303.1)
XYZxyz(11.0339, 5.8415, 30.2459)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#602198 #599821
analogous
#252198 #602198 #982195
triadic
#602198 #986021 #219860
tetradic
#602198 #982521 #599821 #219598
square
#602198 #982521 #599821 #219598
split-complementary
#602198 #959821 #219825
monochromatic
#200B33 #401666 #602198 #802CCA #9E59DB

Accessibility & contrast

On white

9.68
#602198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#602198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #602198
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##602198#FFFFFF#000000##FFFFFF
##6021981.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#54405C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #602198;
/* rgb */ color: rgb(96, 33, 152);
/* oklch */ color: oklch(41.1% 0.180 303.1);
Tailwind
colors: {
  custom: {
    50: '#9364b7',
    500: '#602198',
    950: '#000000',
  },
}
SCSS
$custom: #602198;
$custom-light: #9364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#602198",
  "rgb": {
    "r": 96,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 271.765,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41062,
    "c": 0.18007,
    "h": 303.1
  },
  "luminance": 0.05842
}

Semantic roles & 50–950 ramp

primary
#602198
secondary
#87BF56
accent
#E7408F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #602198

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

Preview Lab → · Contrast checker → · Palette generator →

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