#66229B#66229B

#66229B is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.183 H 305.1°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#66229B
RGBrgb(102, 34, 155)
HSLhsl(274, 64%, 37%)
HSVhsv(274, 78%, 61%)
CMYKcmyk(34.2%, 78.1%, 0%, 39.2%)
CIE-LABlab(30.24, 51.27, -52.68)
CIE-LCHlch(30.24, 73.51, 314.23°)
OKLaboklab(42.19% 0.1055 -0.15)
OKLCHoklch(42.19% 0.183 305.1)
XYZxyz(11.9666, 6.3355, 31.5964)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#66229B #579B22
analogous
#2A229B #66229B #9B2294
triadic
#66229B #9B6622 #229B66
tetradic
#66229B #9B2A22 #579B22 #22949B
square
#66229B #9B2A22 #579B22 #22949B
split-complementary
#66229B #949B22 #229B2A
monochromatic
#240C37 #451769 #66229B #872DCD #A45CDB

Accessibility & contrast

On white

9.26
#66229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#66229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #66229B
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##66229B#FFFFFF#000000##FFFFFF
##66229B1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004799
Tritanopia (blue-blind)
#5C415E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #66229b;
/* rgb */ color: rgb(102, 34, 155);
/* oklch */ color: oklch(42.2% 0.183 305.1);
Tailwind
colors: {
  custom: {
    50: '#9765b9',
    500: '#66229b',
    950: '#000000',
  },
}
SCSS
$custom: #66229b;
$custom-light: #9765b9;
$custom-dark: #000000;
JSON
{
  "hex": "#66229b",
  "rgb": {
    "r": 102,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 273.719,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42185,
    "c": 0.18338,
    "h": 305.1
  },
  "luminance": 0.06335
}

Semantic roles & 50–950 ramp

primary
#66229B
secondary
#86C059
accent
#E7418A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #66229B

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

Preview Lab → · Contrast checker → · Palette generator →

#66229B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva