#662CB7#662CB7

#662CB7 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.6% C 0.202 H 296.3°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#662CB7
RGBrgb(102, 44, 183)
HSLhsl(265, 61%, 45%)
HSVhsv(265, 76%, 72%)
CMYKcmyk(44.3%, 76%, 0%, 28.2%)
CIE-LABlab(34.08, 53.91, -63.25)
CIE-LCHlch(34.08, 83.11, 310.44°)
OKLaboklab(45.6% 0.0897 -0.1811)
OKLCHoklch(45.6% 0.202 296.3)
XYZxyz(14.9251, 8.0447, 45.5570)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CB7 #7DB72C
analogous
#2C38B7 #662CB7 #AC2CB7
triadic
#662CB7 #B7662C #2CB766
tetradic
#662CB7 #B72C38 #7DB72C #2CB7AC
square
#662CB7 #B72C38 #7DB72C #2CB7AC
split-complementary
#662CB7 #B7AC2C #38B72C
monochromatic
#2F1454 #4B2086 #662CB7 #854CD4 #A77EE0

Accessibility & contrast

On white

8.05
#662CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#662CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CB7
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CB7#FFFFFF#000000##FFFFFF
##662CB71.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#505170
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #662cb7;
/* rgb */ color: rgb(102, 44, 183);
/* oklch */ color: oklch(45.6% 0.202 296.3);
Tailwind
colors: {
  custom: {
    50: '#996bce',
    500: '#662cb7',
    950: '#000000',
  },
}
SCSS
$custom: #662cb7;
$custom-light: #996bce;
$custom-dark: #000000;
JSON
{
  "hex": "#662cb7",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 265.036,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45603,
    "c": 0.20212,
    "h": 296.3
  },
  "luminance": 0.08045
}

Semantic roles & 50–950 ramp

primary
#662CB7
secondary
#A6C876
accent
#E443A1
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #662CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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