#662EB8#662EB8

#662EB8 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.9% C 0.201 H 295.9°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#662EB8
RGBrgb(102, 46, 184)
HSLhsl(264, 60%, 45%)
HSVhsv(264, 75%, 72%)
CMYKcmyk(44.6%, 75%, 0%, 27.8%)
CIE-LABlab(34.48, 53.27, -63.19)
CIE-LCHlch(34.48, 82.64, 310.13°)
OKLaboklab(45.91% 0.0877 -0.181)
OKLCHoklch(45.91% 0.201 295.9)
XYZxyz(15.1059, 8.2391, 46.1325)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EB8 #80B82E
analogous
#2E3BB8 #662EB8 #AB2EB8
triadic
#662EB8 #B8662E #2EB866
tetradic
#662EB8 #B82E3B #80B82E #2EB8AB
square
#662EB8 #B82E3B #80B82E #2EB8AB
split-complementary
#662EB8 #B8AB2E #3BB82E
monochromatic
#301656 #4B2287 #662EB8 #8550D3 #A781DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##662EB8#FFFFFF#000000##FFFFFF
##662EB81.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)
#0052BC
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#4F5371
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #662eb8;
/* rgb */ color: rgb(102, 46, 184);
/* oklch */ color: oklch(45.9% 0.201 295.9);
Tailwind
colors: {
  custom: {
    50: '#996dce',
    500: '#662eb8',
    950: '#000000',
  },
}
SCSS
$custom: #662eb8;
$custom-light: #996dce;
$custom-dark: #000000;
JSON
{
  "hex": "#662eb8",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 264.348,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45911,
    "c": 0.2011,
    "h": 295.9
  },
  "luminance": 0.08239
}

Semantic roles & 50–950 ramp

primary
#662EB8
secondary
#A8C879
accent
#E345A3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #662EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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