#662FBC#662FBC

#662FBC is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.4% C 0.204 H 294.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#662FBC
RGBrgb(102, 47, 188)
HSLhsl(263, 60%, 46%)
HSVhsv(263, 75%, 74%)
CMYKcmyk(45.7%, 75%, 0%, 26.3%)
CIE-LABlab(34.98, 53.85, -64.73)
CIE-LCHlch(34.98, 84.19, 309.76°)
OKLaboklab(46.37% 0.0859 -0.1855)
OKLCHoklch(46.37% 0.204 294.8)
XYZxyz(15.5706, 8.4882, 48.3852)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FBC #85BC2F
analogous
#2F3FBC #662FBC #AC2FBC
triadic
#662FBC #BC662F #2FBC66
tetradic
#662FBC #BC2F3F #85BC2F #2FBCAC
square
#662FBC #BC2F3F #85BC2F #2FBCAC
split-complementary
#662FBC #BCAC2F #3FBC2F
monochromatic
#31175A #4B238B #662FBC #8654D4 #A985E0

Accessibility & contrast

On white

7.78
#662FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#662FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FBC
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FBC#FFFFFF#000000##FFFFFF
##662FBC1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662fbc;
/* rgb */ color: rgb(102, 47, 188);
/* oklch */ color: oklch(46.4% 0.204 294.8);
Tailwind
colors: {
  custom: {
    50: '#9a6dd1',
    500: '#662fbc',
    950: '#000000',
  },
}
SCSS
$custom: #662fbc;
$custom-light: #9a6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#662fbc",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 263.404,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46371,
    "c": 0.2044,
    "h": 294.8
  },
  "luminance": 0.08489
}

Semantic roles & 50–950 ramp

primary
#662FBC
secondary
#ACCA7D
accent
#E345A5
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #662FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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