#662291#662291

#662291 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.173 H 308.4°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#662291
RGBrgb(102, 34, 145)
HSLhsl(277, 62%, 35%)
HSVhsv(277, 77%, 57%)
CMYKcmyk(29.7%, 76.6%, 0%, 43.1%)
CIE-LABlab(29.45, 48.96, -47.84)
CIE-LCHlch(29.45, 68.45, 315.66°)
OKLaboklab(41.38% 0.1077 -0.1358)
OKLCHoklch(41.38% 0.173 308.4)
XYZxyz(11.1613, 6.0134, 27.3553)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662291 #4D9122
analogous
#2F2291 #662291 #912284
triadic
#662291 #916622 #229166
tetradic
#662291 #912F22 #4D9122 #228491
square
#662291 #912F22 #4D9122 #228491
split-complementary
#662291 #849122 #22912F
monochromatic
#200B2E #43165F #662291 #892EC3 #A556D7

Accessibility & contrast

On white

9.53
#662291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#662291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662291
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662291#FFFFFF#000000##FFFFFF
##6622911.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#5F3D58
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #662291;
/* rgb */ color: rgb(102, 34, 145);
/* oklch */ color: oklch(41.4% 0.173 308.4);
Tailwind
colors: {
  custom: {
    50: '#9665b2',
    500: '#662291',
    950: '#000000',
  },
}
SCSS
$custom: #662291;
$custom-light: #9665b2;
$custom-dark: #000000;
JSON
{
  "hex": "#662291",
  "rgb": {
    "r": 102,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 276.757,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41375,
    "c": 0.17332,
    "h": 308.4
  },
  "luminance": 0.06013
}

Semantic roles & 50–950 ramp

primary
#662291
secondary
#7CBB53
accent
#E54382
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662291

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

Preview Lab → · Contrast checker → · Palette generator →

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