#662FC9#662FC9

#662FC9 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.5% C 0.218 H 292.2°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#662FC9
RGBrgb(102, 47, 201)
HSLhsl(261, 62%, 49%)
HSVhsv(261, 77%, 79%)
CMYKcmyk(49.3%, 76.6%, 0%, 21.2%)
CIE-LABlab(36.13, 57.23, -70.46)
CIE-LCHlch(36.13, 90.77, 309.08°)
OKLaboklab(47.53% 0.0824 -0.2023)
OKLCHoklch(47.53% 0.218 292.2)
XYZxyz(17.0357, 9.0742, 56.1009)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FC9 #92C92F
analogous
#2F45C9 #662FC9 #B32FC9
triadic
#662FC9 #C9662F #2FC966
tetradic
#662FC9 #C92F45 #92C92F #2FC9B3
square
#662FC9 #C92F45 #92C92F #2FC9B3
split-complementary
#662FC9 #C9B32F #45C92F
monochromatic
#341866 #4D2397 #662FC9 #895CD9 #AD8EE5

Accessibility & contrast

On white

7.46
#662FC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#662FC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FC9
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FC9#FFFFFF#000000##FFFFFF
##662FC91.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CD
Deuteranopia (green-blind)
#0052C6
Tritanopia (blue-blind)
#455A7B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #662fc9;
/* rgb */ color: rgb(102, 47, 201);
/* oklch */ color: oklch(47.5% 0.218 292.2);
Tailwind
colors: {
  custom: {
    50: '#9b6edb',
    500: '#662fc9',
    950: '#000000',
  },
}
SCSS
$custom: #662fc9;
$custom-light: #9b6edb;
$custom-dark: #000000;
JSON
{
  "hex": "#662fc9",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 261.429,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47526,
    "c": 0.21846,
    "h": 292.2
  },
  "luminance": 0.09075
}

Semantic roles & 50–950 ramp

primary
#662FC9
secondary
#B4CF85
accent
#E543AB
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #662FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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