#662996#662996

#662996 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.170 H 305.9°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#662996
RGBrgb(102, 41, 150)
HSLhsl(274, 57%, 37%)
HSVhsv(274, 73%, 59%)
CMYKcmyk(32%, 72.7%, 0%, 41.2%)
CIE-LABlab(30.91, 47.07, -48.54)
CIE-LCHlch(30.91, 67.62, 314.12°)
OKLaboklab(42.53% 0.0997 -0.1379)
OKLCHoklch(42.53% 0.17 305.9)
XYZxyz(11.7762, 6.6128, 29.5043)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662996 #599629
analogous
#302996 #662996 #96298F
triadic
#662996 #966629 #299666
tetradic
#662996 #963029 #599629 #298F96
square
#662996 #963029 #599629 #298F96
split-complementary
#662996 #8F9629 #299630
monochromatic
#250F36 #451C66 #662996 #8736C6 #A365D5

Accessibility & contrast

On white

9.04
#662996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#662996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662996
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662996#FFFFFF#000000##FFFFFF
##6629961.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#004994
Tritanopia (blue-blind)
#5D425D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #662996;
/* rgb */ color: rgb(102, 41, 150);
/* oklch */ color: oklch(42.5% 0.170 305.9);
Tailwind
colors: {
  custom: {
    50: '#9668b6',
    500: '#662996',
    950: '#000000',
  },
}
SCSS
$custom: #662996;
$custom-light: #9668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#662996",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 150
  },
  "hsl": {
    "h": 273.578,
    "s": 57.068,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42531,
    "c": 0.17019,
    "h": 305.9
  },
  "luminance": 0.06613
}

Semantic roles & 50–950 ramp

primary
#662996
secondary
#88BB60
accent
#E0478B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662996

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

Preview Lab → · Contrast checker → · Palette generator →

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