#662CBA#662CBA

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

Color values

HEX#662CBA
RGBrgb(102, 44, 186)
HSLhsl(265, 62%, 45%)
HSVhsv(265, 76%, 73%)
CMYKcmyk(45.2%, 76.3%, 0%, 27.1%)
CIE-LABlab(34.34, 54.67, -64.60)
CIE-LCHlch(34.34, 84.63, 310.24°)
OKLaboklab(45.87% 0.0889 -0.1851)
OKLCHoklch(45.87% 0.205 295.6)
XYZxyz(15.2407, 8.1709, 47.2190)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CBA #80BA2C
analogous
#2C39BA #662CBA #AD2CBA
triadic
#662CBA #BA662C #2CBA66
tetradic
#662CBA #BA2C39 #80BA2C #2CBAAD
square
#662CBA #BA2C39 #80BA2C #2CBAAD
split-complementary
#662CBA #BAAD2C #39BA2C
monochromatic
#301557 #4B2089 #662CBA #854ED5 #A780E1

Accessibility & contrast

On white

7.97
#662CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#662CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CBA
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CBA#FFFFFF#000000##FFFFFF
##662CBA1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#4E5372
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #662cba;
/* rgb */ color: rgb(102, 44, 186);
/* oklch */ color: oklch(45.9% 0.205 295.6);
Tailwind
colors: {
  custom: {
    50: '#9a6cd0',
    500: '#662cba',
    950: '#000000',
  },
}
SCSS
$custom: #662cba;
$custom-light: #9a6cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#662cba",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 264.507,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45866,
    "c": 0.20533,
    "h": 295.6
  },
  "luminance": 0.08171
}

Semantic roles & 50–950 ramp

primary
#662CBA
secondary
#A8CA78
accent
#E543A3
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #662CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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