#662FA8#662FA8

#662FA8 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.182 H 299.7°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#662FA8
RGBrgb(102, 47, 168)
HSLhsl(267, 56%, 42%)
HSVhsv(267, 72%, 66%)
CMYKcmyk(39.3%, 72%, 0%, 34.1%)
CIE-LABlab(33.32, 48.70, -55.54)
CIE-LCHlch(33.32, 73.87, 311.24°)
OKLaboklab(44.68% 0.0903 -0.1585)
OKLCHoklch(44.68% 0.182 299.7)
XYZxyz(13.5621, 7.6848, 37.8070)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FA8 #71A82F
analogous
#2F34A8 #662FA8 #A32FA8
triadic
#662FA8 #A8662F #2FA866
tetradic
#662FA8 #A82F34 #71A82F #2FA8A3
square
#662FA8 #A82F34 #71A82F #2FA8A3
split-complementary
#662FA8 #A8A32F #34A82F
monochromatic
#2C1448 #492278 #662FA8 #8448CC #A478D9

Accessibility & contrast

On white

8.28
#662FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662FA8
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FA8#FFFFFF#000000##FFFFFF
##662FA81.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#574D68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662fa8;
/* rgb */ color: rgb(102, 47, 168);
/* oklch */ color: oklch(44.7% 0.182 299.7);
Tailwind
colors: {
  custom: {
    50: '#976cc3',
    500: '#662fa8',
    950: '#000000',
  },
}
SCSS
$custom: #662fa8;
$custom-light: #976cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#662fa8",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 267.273,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44682,
    "c": 0.18245,
    "h": 299.7
  },
  "luminance": 0.07685
}

Semantic roles & 50–950 ramp

primary
#662FA8
secondary
#9DC171
accent
#E0489B
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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