#662CB8#662CB8

#662CB8 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.203 H 296.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#662CB8
RGBrgb(102, 44, 184)
HSLhsl(265, 61%, 45%)
HSVhsv(265, 76%, 72%)
CMYKcmyk(44.6%, 76.1%, 0%, 27.8%)
CIE-LABlab(34.16, 54.16, -63.70)
CIE-LCHlch(34.16, 83.61, 310.37°)
OKLaboklab(45.69% 0.0894 -0.1825)
OKLCHoklch(45.69% 0.203 296.1)
XYZxyz(15.0296, 8.0865, 46.1071)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CB8 #7EB82C
analogous
#2C38B8 #662CB8 #AC2CB8
triadic
#662CB8 #B8662C #2CB866
tetradic
#662CB8 #B82C38 #7EB82C #2CB8AC
square
#662CB8 #B82C38 #7EB82C #2CB8AC
split-complementary
#662CB8 #B8AC2C #38B82C
monochromatic
#2F1455 #4B2087 #662CB8 #854DD4 #A77EE0

Accessibility & contrast

On white

8.02
#662CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#662CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CB8
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CB8#FFFFFF#000000##FFFFFF
##662CB81.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#4F5271
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #662cb8;
/* rgb */ color: rgb(102, 44, 184);
/* oklch */ color: oklch(45.7% 0.203 296.1);
Tailwind
colors: {
  custom: {
    50: '#996bce',
    500: '#662cb8',
    950: '#000000',
  },
}
SCSS
$custom: #662cb8;
$custom-light: #996bce;
$custom-dark: #000000;
JSON
{
  "hex": "#662cb8",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 264.857,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45691,
    "c": 0.20319,
    "h": 296.1
  },
  "luminance": 0.08087
}

Semantic roles & 50–950 ramp

primary
#662CB8
secondary
#A7C977
accent
#E543A2
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #662CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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