#662FB6#662FB6

#662FB6 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.9% C 0.198 H 296.2°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#662FB6
RGBrgb(102, 47, 182)
HSLhsl(264, 59%, 45%)
HSVhsv(264, 74%, 71%)
CMYKcmyk(44%, 74.2%, 0%, 28.6%)
CIE-LABlab(34.47, 52.29, -62.02)
CIE-LCHlch(34.47, 81.12, 310.14°)
OKLaboklab(45.85% 0.0873 -0.1775)
OKLCHoklch(45.85% 0.198 296.2)
XYZxyz(14.9373, 8.2349, 45.0494)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FB6 #7FB62F
analogous
#2F3CB6 #662FB6 #A92FB6
triadic
#662FB6 #B6662F #2FB666
tetradic
#662FB6 #B62F3C #7FB62F #2FB6A9
square
#662FB6 #B62F3C #7FB62F #2FB6A9
split-complementary
#662FB6 #B6A92F #3CB62F
monochromatic
#2F1655 #4B2285 #662FB6 #8550D2 #A781DE

Accessibility & contrast

On white

7.93
#662FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#662FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FB6
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FB6#FFFFFF#000000##FFFFFF
##662FB61.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#505270
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #662fb6;
/* rgb */ color: rgb(102, 47, 182);
/* oklch */ color: oklch(45.9% 0.198 296.2);
Tailwind
colors: {
  custom: {
    50: '#996dcd',
    500: '#662fb6',
    950: '#000000',
  },
}
SCSS
$custom: #662fb6;
$custom-light: #996dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#662fb6",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 264.444,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45852,
    "c": 0.19785,
    "h": 296.2
  },
  "luminance": 0.08235
}

Semantic roles & 50–950 ramp

primary
#662FB6
secondary
#A8C779
accent
#E246A2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #662FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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