#662FB2#662FB2

#662FB2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.193 H 297.1°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#662FB2
RGBrgb(102, 47, 178)
HSLhsl(265, 58%, 44%)
HSVhsv(265, 74%, 70%)
CMYKcmyk(42.7%, 73.6%, 0%, 30.2%)
CIE-LABlab(34.13, 51.26, -60.19)
CIE-LCHlch(34.13, 79.06, 310.42°)
OKLaboklab(45.51% 0.0882 -0.1722)
OKLCHoklch(45.51% 0.193 297.1)
XYZxyz(14.5298, 8.0719, 42.9034)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FB2 #7BB22F
analogous
#2F3AB2 #662FB2 #A82FB2
triadic
#662FB2 #B2662F #2FB266
tetradic
#662FB2 #B22F3A #7BB22F #2FB2A8
square
#662FB2 #B22F3A #7BB22F #2FB2A8
split-complementary
#662FB2 #B2A82F #3AB22F
monochromatic
#2F1551 #4A2282 #662FB2 #854ED0 #A67EDD

Accessibility & contrast

On white

8.03
#662FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#662FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FB2
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FB2#FFFFFF#000000##FFFFFF
##662FB21.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#52516E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #662fb2;
/* rgb */ color: rgb(102, 47, 178);
/* oklch */ color: oklch(45.5% 0.193 297.1);
Tailwind
colors: {
  custom: {
    50: '#986dca',
    500: '#662fb2',
    950: '#000000',
  },
}
SCSS
$custom: #662fb2;
$custom-light: #986dca;
$custom-dark: #000000;
JSON
{
  "hex": "#662fb2",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 265.191,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45512,
    "c": 0.19347,
    "h": 297.1
  },
  "luminance": 0.08072
}

Semantic roles & 50–950 ramp

primary
#662FB2
secondary
#A5C677
accent
#E146A0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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