#662FB4#662FB4

#662FB4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.196 H 296.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#662FB4
RGBrgb(102, 47, 180)
HSLhsl(265, 59%, 45%)
HSVhsv(265, 74%, 71%)
CMYKcmyk(43.3%, 73.9%, 0%, 29.4%)
CIE-LABlab(34.30, 51.78, -61.11)
CIE-LCHlch(34.30, 80.09, 310.28°)
OKLaboklab(45.68% 0.0878 -0.1749)
OKLCHoklch(45.68% 0.196 296.7)
XYZxyz(14.7321, 8.1528, 43.9686)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FB4 #7DB42F
analogous
#2F3BB4 #662FB4 #A92FB4
triadic
#662FB4 #B4662F #2FB466
tetradic
#662FB4 #B42F3B #7DB42F #2FB4A9
square
#662FB4 #B42F3B #7DB42F #2FB4A9
split-complementary
#662FB4 #B4A92F #3BB42F
monochromatic
#2F1653 #4B2283 #662FB4 #854FD1 #A780DE

Accessibility & contrast

On white

7.98
#662FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#662FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FB4
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FB4#FFFFFF#000000##FFFFFF
##662FB41.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#51526F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #662fb4;
/* rgb */ color: rgb(102, 47, 180);
/* oklch */ color: oklch(45.7% 0.196 296.7);
Tailwind
colors: {
  custom: {
    50: '#996dcb',
    500: '#662fb4',
    950: '#000000',
  },
}
SCSS
$custom: #662fb4;
$custom-light: #996dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#662fb4",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 264.812,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45682,
    "c": 0.19567,
    "h": 296.7
  },
  "luminance": 0.08153
}

Semantic roles & 50–950 ramp

primary
#662FB4
secondary
#A6C778
accent
#E246A1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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