#662EBD#662EBD

#662EBD is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.3% C 0.207 H 294.7°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#662EBD
RGBrgb(102, 46, 189)
HSLhsl(263, 61%, 46%)
HSVhsv(263, 76%, 74%)
CMYKcmyk(46%, 75.7%, 0%, 25.9%)
CIE-LABlab(34.91, 54.56, -65.43)
CIE-LCHlch(34.91, 85.19, 309.82°)
OKLaboklab(46.35% 0.0864 -0.1876)
OKLCHoklch(46.35% 0.207 294.7)
XYZxyz(15.6393, 8.4525, 48.9417)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EBD #85BD2E
analogous
#2E3DBD #662EBD #AD2EBD
triadic
#662EBD #BD662E #2EBD66
tetradic
#662EBD #BD2E3D #85BD2E #2EBDAD
square
#662EBD #BD2E3D #85BD2E #2EBDAD
split-complementary
#662EBD #BDAD2E #3DBD2E
monochromatic
#31165B #4B228C #662EBD #8653D5 #A984E1

Accessibility & contrast

On white

7.80
#662EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#662EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EBD
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EBD#FFFFFF#000000##FFFFFF
##662EBD1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662ebd;
/* rgb */ color: rgb(102, 46, 189);
/* oklch */ color: oklch(46.3% 0.207 294.7);
Tailwind
colors: {
  custom: {
    50: '#9a6dd2',
    500: '#662ebd',
    950: '#000000',
  },
}
SCSS
$custom: #662ebd;
$custom-light: #9a6dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#662ebd",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 263.497,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46347,
    "c": 0.20652,
    "h": 294.7
  },
  "luminance": 0.08453
}

Semantic roles & 50–950 ramp

primary
#662EBD
secondary
#ACCA7C
accent
#E444A5
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #662EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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