#662FB7#662FB7

#662FB7 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.199 H 296.0°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#662FB7
RGBrgb(102, 47, 183)
HSLhsl(264, 59%, 45%)
HSVhsv(264, 74%, 72%)
CMYKcmyk(44.3%, 74.3%, 0%, 28.2%)
CIE-LABlab(34.55, 52.55, -62.47)
CIE-LCHlch(34.55, 81.63, 310.07°)
OKLaboklab(45.94% 0.0871 -0.1789)
OKLCHoklch(45.94% 0.199 296)
XYZxyz(15.0410, 8.2764, 45.5956)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FB7 #80B72F
analogous
#2F3CB7 #662FB7 #AA2FB7
triadic
#662FB7 #B7662F #2FB766
tetradic
#662FB7 #B72F3C #80B72F #2FB7AA
square
#662FB7 #B72F3C #80B72F #2FB7AA
split-complementary
#662FB7 #B7AA2F #3CB72F
monochromatic
#301656 #4B2286 #662FB7 #8551D2 #A782DF

Accessibility & contrast

On white

7.91
#662FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#662FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FB7
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FB7#FFFFFF#000000##FFFFFF
##662FB71.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#505371
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #662fb7;
/* rgb */ color: rgb(102, 47, 183);
/* oklch */ color: oklch(45.9% 0.199 296.0);
Tailwind
colors: {
  custom: {
    50: '#996dce',
    500: '#662fb7',
    950: '#000000',
  },
}
SCSS
$custom: #662fb7;
$custom-light: #996dce;
$custom-dark: #000000;
JSON
{
  "hex": "#662fb7",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 264.265,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45938,
    "c": 0.19895,
    "h": 296
  },
  "luminance": 0.08277
}

Semantic roles & 50–950 ramp

primary
#662FB7
secondary
#A8C87A
accent
#E245A3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0714
muted
#7E7A82

Preview Lab

Preview with #662FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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