#662297#662297

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

Color values

HEX#662297
RGBrgb(102, 34, 151)
HSLhsl(275, 63%, 36%)
HSVhsv(275, 77%, 59%)
CMYKcmyk(32.5%, 77.5%, 0%, 40.8%)
CIE-LABlab(29.92, 50.34, -50.76)
CIE-LCHlch(29.92, 71.49, 314.76°)
OKLaboklab(41.86% 0.1064 -0.1444)
OKLCHoklch(41.86% 0.179 306.4)
XYZxyz(11.6362, 6.2033, 29.8565)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662297 #539722
analogous
#2C2297 #662297 #97228E
triadic
#662297 #976622 #229766
tetradic
#662297 #972C22 #539722 #228E97
square
#662297 #972C22 #539722 #228E97
split-complementary
#662297 #8E9722 #22972C
monochromatic
#230C33 #441765 #662297 #882DC9 #A45ADA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##662297#FFFFFF#000000##FFFFFF
##6622971.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)
#00449A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#5D3F5B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #662297;
/* rgb */ color: rgb(102, 34, 151);
/* oklch */ color: oklch(41.9% 0.179 306.4);
Tailwind
colors: {
  custom: {
    50: '#9765b6',
    500: '#662297',
    950: '#000000',
  },
}
SCSS
$custom: #662297;
$custom-light: #9765b6;
$custom-dark: #000000;
JSON
{
  "hex": "#662297",
  "rgb": {
    "r": 102,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 274.872,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41857,
    "c": 0.17935,
    "h": 306.4
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#662297
secondary
#82BE57
accent
#E64287
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662297

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

Preview Lab → · Contrast checker → · Palette generator →

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