#662FB8#662FB8

#662FB8 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.0% C 0.200 H 295.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#662FB8
RGBrgb(102, 47, 184)
HSLhsl(264, 59%, 45%)
HSVhsv(264, 74%, 72%)
CMYKcmyk(44.6%, 74.5%, 0%, 27.8%)
CIE-LABlab(34.64, 52.81, -62.92)
CIE-LCHlch(34.64, 82.15, 310.01°)
OKLaboklab(46.02% 0.0869 -0.1802)
OKLCHoklch(46.02% 0.2 295.7)
XYZxyz(15.1454, 8.3181, 46.1457)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FB8 #81B82F
analogous
#2F3CB8 #662FB8 #AB2FB8
triadic
#662FB8 #B8662F #2FB866
tetradic
#662FB8 #B82F3C #81B82F #2FB8AB
square
#662FB8 #B82F3C #81B82F #2FB8AB
split-complementary
#662FB8 #B8AB2F #3CB82F
monochromatic
#301657 #4B2387 #662FB8 #8552D3 #A882DF

Accessibility & contrast

On white

7.88
#662FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#662FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FB8
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FB8#FFFFFF#000000##FFFFFF
##662FB81.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#4F5371
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #662fb8;
/* rgb */ color: rgb(102, 47, 184);
/* oklch */ color: oklch(46.0% 0.200 295.7);
Tailwind
colors: {
  custom: {
    50: '#996dce',
    500: '#662fb8',
    950: '#000000',
  },
}
SCSS
$custom: #662fb8;
$custom-light: #996dce;
$custom-dark: #000000;
JSON
{
  "hex": "#662fb8",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 264.088,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46024,
    "c": 0.20005,
    "h": 295.7
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#662FB8
secondary
#A9C87B
accent
#E245A3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #662FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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