#662FBD#662FBD

#662FBD is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.5% C 0.205 H 294.6°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#662FBD
RGBrgb(102, 47, 189)
HSLhsl(263, 60%, 46%)
HSVhsv(263, 75%, 74%)
CMYKcmyk(46%, 75.1%, 0%, 25.9%)
CIE-LABlab(35.07, 54.10, -65.17)
CIE-LCHlch(35.07, 84.70, 309.70°)
OKLaboklab(46.46% 0.0856 -0.1868)
OKLCHoklch(46.46% 0.205 294.6)
XYZxyz(15.6788, 8.5315, 48.9549)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FBD #86BD2F
analogous
#2F3FBD #662FBD #AD2FBD
triadic
#662FBD #BD662F #2FBD66
tetradic
#662FBD #BD2F3F #86BD2F #2FBDAD
square
#662FBD #BD2F3F #86BD2F #2FBDAD
split-complementary
#662FBD #BDAD2F #3FBD2F
monochromatic
#31175B #4C238C #662FBD #8655D5 #A986E1

Accessibility & contrast

On white

7.76
#662FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#662FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FBD
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FBD#FFFFFF#000000##FFFFFF
##662FBD1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#4D5574
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #662fbd;
/* rgb */ color: rgb(102, 47, 189);
/* oklch */ color: oklch(46.5% 0.205 294.6);
Tailwind
colors: {
  custom: {
    50: '#9a6dd2',
    500: '#662fbd',
    950: '#000000',
  },
}
SCSS
$custom: #662fbd;
$custom-light: #9a6dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#662fbd",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 263.239,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46458,
    "c": 0.20548,
    "h": 294.6
  },
  "luminance": 0.08532
}

Semantic roles & 50–950 ramp

primary
#662FBD
secondary
#ADCA7E
accent
#E344A6
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #662FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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