#662EBF#662EBF

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

Color values

HEX#662EBF
RGBrgb(102, 46, 191)
HSLhsl(263, 61%, 46%)
HSVhsv(263, 76%, 75%)
CMYKcmyk(46.6%, 75.9%, 0%, 25.1%)
CIE-LABlab(35.08, 55.07, -66.32)
CIE-LCHlch(35.08, 86.21, 309.71°)
OKLaboklab(46.52% 0.0859 -0.1902)
OKLCHoklch(46.52% 0.209 294.3)
XYZxyz(15.8579, 8.5399, 50.0930)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EBF #87BF2E
analogous
#2E3FBF #662EBF #AF2EBF
triadic
#662EBF #BF662E #2EBF66
tetradic
#662EBF #BF2E3F #87BF2E #2EBFAF
square
#662EBF #BF2E3F #87BF2E #2EBFAF
split-complementary
#662EBF #BFAF2E #3FBF2E
monochromatic
#31165C #4C228E #662EBF #8654D6 #A986E2

Accessibility & contrast

On white

7.75
#662EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #662EBF
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EBF#FFFFFF#000000##FFFFFF
##662EBF1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662ebf;
/* rgb */ color: rgb(102, 46, 191);
/* oklch */ color: oklch(46.5% 0.209 294.3);
Tailwind
colors: {
  custom: {
    50: '#9a6dd3',
    500: '#662ebf',
    950: '#000000',
  },
}
SCSS
$custom: #662ebf;
$custom-light: #9a6dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#662ebf",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 191
  },
  "hsl": {
    "h": 263.172,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46523,
    "c": 0.20868,
    "h": 294.3
  },
  "luminance": 0.0854
}

Semantic roles & 50–950 ramp

primary
#662EBF
secondary
#ADCB7E
accent
#E444A6
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #662EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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