#662FB5#662FB5

#662FB5 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.8% C 0.197 H 296.4°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#662FB5
RGBrgb(102, 47, 181)
HSLhsl(265, 59%, 45%)
HSVhsv(265, 74%, 71%)
CMYKcmyk(43.6%, 74%, 0%, 29%)
CIE-LABlab(34.38, 52.03, -61.56)
CIE-LCHlch(34.38, 80.61, 310.21°)
OKLaboklab(45.77% 0.0876 -0.1762)
OKLCHoklch(45.77% 0.197 296.4)
XYZxyz(14.8343, 8.1937, 44.5071)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FB5 #7EB52F
analogous
#2F3BB5 #662FB5 #A92FB5
triadic
#662FB5 #B5662F #2FB566
tetradic
#662FB5 #B52F3B #7EB52F #2FB5A9
square
#662FB5 #B52F3B #7EB52F #2FB5A9
split-complementary
#662FB5 #B5A92F #3BB52F
monochromatic
#2F1654 #4B2284 #662FB5 #8550D1 #A780DE

Accessibility & contrast

On white

7.96
#662FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#662FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FB5
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FB5#FFFFFF#000000##FFFFFF
##662FB51.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#515270
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #662fb5;
/* rgb */ color: rgb(102, 47, 181);
/* oklch */ color: oklch(45.8% 0.197 296.4);
Tailwind
colors: {
  custom: {
    50: '#996dcc',
    500: '#662fb5',
    950: '#000000',
  },
}
SCSS
$custom: #662fb5;
$custom-light: #996dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#662fb5",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 264.627,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45767,
    "c": 0.19677,
    "h": 296.4
  },
  "luminance": 0.08194
}

Semantic roles & 50–950 ramp

primary
#662FB5
secondary
#A7C779
accent
#E246A2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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