#9A66CD#9A66CD

#9A66CD is a mid, vivid violet. Relative luminance 0.208; OKLCH L 60.9% C 0.158 H 305.5°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9A66CD
RGBrgb(154, 102, 205)
HSLhsl(270, 51%, 60%)
HSVhsv(270, 50%, 80%)
CMYKcmyk(24.9%, 50.2%, 0%, 19.6%)
CIE-LABlab(52.71, 40.82, -45.71)
CIE-LCHlch(52.71, 61.28, 311.76°)
OKLaboklab(60.92% 0.0916 -0.1282)
OKLCHoklch(60.92% 0.158 305.5)
XYZxyz(29.0949, 20.7807, 60.2241)
Luminance0.2078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A66CD #99CD66
analogous
#6666CD #9A66CD #CD66CD
triadic
#9A66CD #CD9A66 #66CD9A
tetradic
#9A66CD #CD6666 #99CD66 #66CDCD
square
#9A66CD #CD6666 #99CD66 #66CDCD
split-complementary
#9A66CD #CDCD66 #66CD66
monochromatic
#5D2D8B #7C3DB9 #9A66CD #B894DC #D7C2EB

Accessibility & contrast

On white

4.07
#9A66CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#9A66CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A66CD
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A66CD#FFFFFF#000000##000000
##9A66CD1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#487CD1
Deuteranopia (green-blind)
#567ECA
Tritanopia (blue-blind)
#927890
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9a66cd;
/* rgb */ color: rgb(154, 102, 205);
/* oklch */ color: oklch(60.9% 0.158 305.5);
Tailwind
colors: {
  custom: {
    50: '#ba93dd',
    500: '#9a66cd',
    950: '#000000',
  },
}
SCSS
$custom: #9a66cd;
$custom-light: #ba93dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9a66cd",
  "rgb": {
    "r": 154,
    "g": 102,
    "b": 205
  },
  "hsl": {
    "h": 270.291,
    "s": 50.739,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60924,
    "c": 0.15757,
    "h": 305.5
  },
  "luminance": 0.20781
}

Semantic roles & 50–950 ramp

primary
#9A66CD
secondary
#C7DBB4
accent
#BE2772
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #9A66CD

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

Preview Lab → · Contrast checker → · Palette generator →

#9A66CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva