#662FBF#662FBF

#662FBF is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.6% C 0.208 H 294.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#662FBF
RGBrgb(102, 47, 191)
HSLhsl(263, 61%, 47%)
HSVhsv(263, 75%, 75%)
CMYKcmyk(46.6%, 75.4%, 0%, 25.1%)
CIE-LABlab(35.24, 54.62, -66.06)
CIE-LCHlch(35.24, 85.72, 309.58°)
OKLaboklab(46.63% 0.0851 -0.1894)
OKLCHoklch(46.63% 0.208 294.2)
XYZxyz(15.8974, 8.6189, 50.1061)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FBF #88BF2F
analogous
#2F40BF #662FBF #AE2FBF
triadic
#662FBF #BF662F #2FBF66
tetradic
#662FBF #BF2F40 #88BF2F #2FBFAE
square
#662FBF #BF2F40 #88BF2F #2FBFAE
split-complementary
#662FBF #BFAE2F #40BF2F
monochromatic
#32175D #4C238E #662FBF #8756D5 #AA87E1

Accessibility & contrast

On white

7.71
#662FBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#662FBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FBF
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FBF#FFFFFF#000000##FFFFFF
##662FBF1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#0050BC
Tritanopia (blue-blind)
#4C5675
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #662fbf;
/* rgb */ color: rgb(102, 47, 191);
/* oklch */ color: oklch(46.6% 0.208 294.2);
Tailwind
colors: {
  custom: {
    50: '#9a6dd3',
    500: '#662fbf',
    950: '#000000',
  },
}
SCSS
$custom: #662fbf;
$custom-light: #9a6dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#662fbf",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 191
  },
  "hsl": {
    "h": 262.917,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46634,
    "c": 0.20766,
    "h": 294.2
  },
  "luminance": 0.08619
}

Semantic roles & 50–950 ramp

primary
#662FBF
secondary
#AECB7F
accent
#E444A7
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #662FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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