#662299#662299

#662299 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.181 H 305.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#662299
RGBrgb(102, 34, 153)
HSLhsl(274, 64%, 37%)
HSVhsv(274, 78%, 60%)
CMYKcmyk(33.3%, 77.8%, 0%, 40%)
CIE-LABlab(30.08, 50.81, -51.72)
CIE-LCHlch(30.08, 72.50, 314.49°)
OKLaboklab(42.02% 0.1059 -0.1472)
OKLCHoklch(42.02% 0.181 305.7)
XYZxyz(11.8000, 6.2688, 30.7192)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662299 #559922
analogous
#2B2299 #662299 #992291
triadic
#662299 #996622 #229966
tetradic
#662299 #992B22 #559922 #229199
square
#662299 #992B22 #559922 #229199
split-complementary
#662299 #919922 #22992B
monochromatic
#230C35 #451767 #662299 #872DCB #A45BDB

Accessibility & contrast

On white

9.32
#662299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#662299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662299
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662299#FFFFFF#000000##FFFFFF
##6622991.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#5D405D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #662299;
/* rgb */ color: rgb(102, 34, 153);
/* oklch */ color: oklch(42.0% 0.181 305.7);
Tailwind
colors: {
  custom: {
    50: '#9765b8',
    500: '#662299',
    950: '#000000',
  },
}
SCSS
$custom: #662299;
$custom-light: #9765b8;
$custom-dark: #000000;
JSON
{
  "hex": "#662299",
  "rgb": {
    "r": 102,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 274.286,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4202,
    "c": 0.18136,
    "h": 305.7
  },
  "luminance": 0.06269
}

Semantic roles & 50–950 ramp

primary
#662299
secondary
#84BF58
accent
#E74188
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662299

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

Preview Lab → · Contrast checker → · Palette generator →

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