#662FC0#662FC0

#662FC0 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.209 H 294.0°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#662FC0
RGBrgb(102, 47, 192)
HSLhsl(263, 61%, 47%)
HSVhsv(263, 76%, 75%)
CMYKcmyk(46.9%, 75.5%, 0%, 24.7%)
CIE-LABlab(35.33, 54.88, -66.51)
CIE-LCHlch(35.33, 86.23, 309.53°)
OKLaboklab(46.72% 0.0848 -0.1907)
OKLCHoklch(46.72% 0.209 294)
XYZxyz(16.0078, 8.6631, 50.6877)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FC0 #89C02F
analogous
#2F40C0 #662FC0 #AF2FC0
triadic
#662FC0 #C0662F #2FC066
tetradic
#662FC0 #C02F40 #89C02F #2FC0AF
square
#662FC0 #C02F40 #89C02F #2FC0AF
split-complementary
#662FC0 #C0AF2F #40C02F
monochromatic
#32175E #4C238F #662FC0 #8756D6 #AA88E2

Accessibility & contrast

On white

7.68
#662FC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#662FC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FC0
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FC0#FFFFFF#000000##FFFFFF
##662FC01.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C4
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#4B5676
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #662fc0;
/* rgb */ color: rgb(102, 47, 192);
/* oklch */ color: oklch(46.7% 0.209 294.0);
Tailwind
colors: {
  custom: {
    50: '#9a6dd4',
    500: '#662fc0',
    950: '#000000',
  },
}
SCSS
$custom: #662fc0;
$custom-light: #9a6dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#662fc0",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 192
  },
  "hsl": {
    "h": 262.759,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46722,
    "c": 0.20874,
    "h": 294
  },
  "luminance": 0.08664
}

Semantic roles & 50–950 ramp

primary
#662FC0
secondary
#AFCB7F
accent
#E444A7
background
#FAF6FD
surface
#F3ECFA
border
#CDC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #662FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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