#662FB0#662FB0

#662FB0 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.191 H 297.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#662FB0
RGBrgb(102, 47, 176)
HSLhsl(266, 58%, 44%)
HSVhsv(266, 73%, 69%)
CMYKcmyk(42%, 73.3%, 0%, 31%)
CIE-LABlab(33.97, 50.75, -59.27)
CIE-LCHlch(33.97, 78.03, 310.57°)
OKLaboklab(45.34% 0.0887 -0.1695)
OKLCHoklch(45.34% 0.191 297.6)
XYZxyz(14.3304, 7.9921, 41.8535)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FB0 #79B02F
analogous
#2F38B0 #662FB0 #A62FB0
triadic
#662FB0 #B0662F #2FB066
tetradic
#662FB0 #B02F38 #79B02F #2FB0A6
square
#662FB0 #B02F38 #79B02F #2FB0A6
split-complementary
#662FB0 #B0A62F #38B02F
monochromatic
#2E154F #4A2280 #662FB0 #844DCF #A67DDC

Accessibility & contrast

On white

8.08
#662FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#662FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FB0
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FB0#FFFFFF#000000##FFFFFF
##662FB01.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662fb0;
/* rgb */ color: rgb(102, 47, 176);
/* oklch */ color: oklch(45.3% 0.191 297.6);
Tailwind
colors: {
  custom: {
    50: '#986dc9',
    500: '#662fb0',
    950: '#000000',
  },
}
SCSS
$custom: #662fb0;
$custom-light: #986dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#662fb0",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 265.581,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45344,
    "c": 0.19127,
    "h": 297.6
  },
  "luminance": 0.07992
}

Semantic roles & 50–950 ramp

primary
#662FB0
secondary
#A3C576
accent
#E1479F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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