#662FB1#662FB1

#662FB1 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.192 H 297.4°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#662FB1
RGBrgb(102, 47, 177)
HSLhsl(265, 58%, 44%)
HSVhsv(265, 73%, 69%)
CMYKcmyk(42.4%, 73.4%, 0%, 30.6%)
CIE-LABlab(34.05, 51.00, -59.73)
CIE-LCHlch(34.05, 78.54, 310.49°)
OKLaboklab(45.43% 0.0885 -0.1708)
OKLCHoklch(45.43% 0.192 297.4)
XYZxyz(14.4298, 8.0319, 42.3765)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FB1 #7AB12F
analogous
#2F39B1 #662FB1 #A72FB1
triadic
#662FB1 #B1662F #2FB166
tetradic
#662FB1 #B12F39 #7AB12F #2FB1A7
square
#662FB1 #B12F39 #7AB12F #2FB1A7
split-complementary
#662FB1 #B1A72F #39B12F
monochromatic
#2E1550 #4A2281 #662FB1 #854DD0 #A67EDD

Accessibility & contrast

On white

8.06
#662FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662FB1
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FB1#FFFFFF#000000##FFFFFF
##662FB11.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#53506D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #662fb1;
/* rgb */ color: rgb(102, 47, 177);
/* oklch */ color: oklch(45.4% 0.192 297.4);
Tailwind
colors: {
  custom: {
    50: '#986dc9',
    500: '#662fb1',
    950: '#000000',
  },
}
SCSS
$custom: #662fb1;
$custom-light: #986dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#662fb1",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 265.385,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45428,
    "c": 0.19237,
    "h": 297.4
  },
  "luminance": 0.08032
}

Semantic roles & 50–950 ramp

primary
#662FB1
secondary
#A4C576
accent
#E147A0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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