#662FA9#662FA9

#662FA9 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.184 H 299.4°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#662FA9
RGBrgb(102, 47, 169)
HSLhsl(267, 56%, 42%)
HSVhsv(267, 72%, 66%)
CMYKcmyk(39.6%, 72.2%, 0%, 33.7%)
CIE-LABlab(33.40, 48.95, -56.01)
CIE-LCHlch(33.40, 74.39, 311.15°)
OKLaboklab(44.76% 0.0901 -0.1599)
OKLCHoklch(44.76% 0.184 299.4)
XYZxyz(13.6556, 7.7222, 38.2995)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FA9 #72A92F
analogous
#2F35A9 #662FA9 #A32FA9
triadic
#662FA9 #A9662F #2FA966
tetradic
#662FA9 #A92F35 #72A92F #2FA9A3
square
#662FA9 #A92F35 #72A92F #2FA9A3
split-complementary
#662FA9 #A9A32F #35A92F
monochromatic
#2C1449 #492279 #662FA9 #8449CC #A479DA

Accessibility & contrast

On white

8.25
#662FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#662FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FA9
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FA9#FFFFFF#000000##FFFFFF
##662FA91.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAD
Deuteranopia (green-blind)
#004DA7
Tritanopia (blue-blind)
#564D69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662fa9;
/* rgb */ color: rgb(102, 47, 169);
/* oklch */ color: oklch(44.8% 0.184 299.4);
Tailwind
colors: {
  custom: {
    50: '#976cc3',
    500: '#662fa9',
    950: '#000000',
  },
}
SCSS
$custom: #662fa9;
$custom-light: #976cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#662fa9",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 267.049,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44764,
    "c": 0.18355,
    "h": 299.4
  },
  "luminance": 0.07722
}

Semantic roles & 50–950 ramp

primary
#662FA9
secondary
#9EC272
accent
#E0489B
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662FA9

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

Preview Lab → · Contrast checker → · Palette generator →

#662FA9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva