#662CAF#662CAF

#662CAF is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.194 H 298.3°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#662CAF
RGBrgb(102, 44, 175)
HSLhsl(267, 60%, 43%)
HSVhsv(267, 75%, 69%)
CMYKcmyk(41.7%, 74.9%, 0%, 31.4%)
CIE-LABlab(33.40, 51.88, -59.61)
CIE-LCHlch(33.40, 79.02, 311.03°)
OKLaboklab(44.92% 0.0917 -0.1704)
OKLCHoklch(44.92% 0.194 298.3)
XYZxyz(14.1160, 7.7211, 41.2957)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662CAF #75AF2C
analogous
#2C33AF #662CAF #A72CAF
triadic
#662CAF #AF662C #2CAF66
tetradic
#662CAF #AF2C33 #75AF2C #2CAFA7
square
#662CAF #AF2C33 #75AF2C #2CAFA7
split-complementary
#662CAF #AFA72C #33AF2C
monochromatic
#2D134D #49207E #662CAF #8447D1 #A578DD

Accessibility & contrast

On white

8.25
#662CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#662CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662CAF
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662CAF#FFFFFF#000000##FFFFFF
##662CAF1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#544E6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662caf;
/* rgb */ color: rgb(102, 44, 175);
/* oklch */ color: oklch(44.9% 0.194 298.3);
Tailwind
colors: {
  custom: {
    50: '#986bc8',
    500: '#662caf',
    950: '#000000',
  },
}
SCSS
$custom: #662caf;
$custom-light: #986bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#662caf",
  "rgb": {
    "r": 102,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 266.565,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44915,
    "c": 0.19352,
    "h": 298.3
  },
  "luminance": 0.07721
}

Semantic roles & 50–950 ramp

primary
#662CAF
secondary
#A0C572
accent
#E3459D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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