#662BB7#662BB7

#662BB7 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.5% C 0.203 H 296.5°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#662BB7
RGBrgb(102, 43, 183)
HSLhsl(265, 62%, 44%)
HSVhsv(265, 77%, 72%)
CMYKcmyk(44.3%, 76.5%, 0%, 28.2%)
CIE-LABlab(33.92, 54.35, -63.50)
CIE-LCHlch(33.92, 83.58, 310.56°)
OKLaboklab(45.5% 0.0905 -0.1819)
OKLCHoklch(45.5% 0.203 296.5)
XYZxyz(14.8883, 7.9711, 45.5447)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BB7 #7CB72B
analogous
#2B36B7 #662BB7 #AC2BB7
triadic
#662BB7 #B7662B #2BB766
tetradic
#662BB7 #B72B36 #7CB72B #2BB7AC
square
#662BB7 #B72B36 #7CB72B #2BB7AC
split-complementary
#662BB7 #B7AC2B #36B72B
monochromatic
#2F1454 #4A1F85 #662BB7 #854BD5 #A67CE0

Accessibility & contrast

On white

8.09
#662BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#662BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BB7
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BB7#FFFFFF#000000##FFFFFF
##662BB71.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#505170
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #662bb7;
/* rgb */ color: rgb(102, 43, 183);
/* oklch */ color: oklch(45.5% 0.203 296.5);
Tailwind
colors: {
  custom: {
    50: '#996bce',
    500: '#662bb7',
    950: '#000000',
  },
}
SCSS
$custom: #662bb7;
$custom-light: #996bce;
$custom-dark: #000000;
JSON
{
  "hex": "#662bb7",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 265.286,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45496,
    "c": 0.20315,
    "h": 296.5
  },
  "luminance": 0.07971
}

Semantic roles & 50–950 ramp

primary
#662BB7
secondary
#A5C975
accent
#E543A1
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #662BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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