#662FB3#662FB3

#662FB3 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.6% C 0.195 H 296.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#662FB3
RGBrgb(102, 47, 179)
HSLhsl(265, 58%, 44%)
HSVhsv(265, 74%, 70%)
CMYKcmyk(43%, 73.7%, 0%, 29.8%)
CIE-LABlab(34.22, 51.52, -60.65)
CIE-LCHlch(34.22, 79.58, 310.35°)
OKLaboklab(45.6% 0.088 -0.1735)
OKLCHoklch(45.6% 0.195 296.9)
XYZxyz(14.6306, 8.1122, 43.4341)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FB3 #7CB32F
analogous
#2F3AB3 #662FB3 #A82FB3
triadic
#662FB3 #B3662F #2FB366
tetradic
#662FB3 #B32F3A #7CB32F #2FB3A8
square
#662FB3 #B32F3A #7CB32F #2FB3A8
split-complementary
#662FB3 #B3A82F #3AB32F
monochromatic
#2F1652 #4A2283 #662FB3 #854FD1 #A67FDD

Accessibility & contrast

On white

8.01
#662FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#662FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FB3
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FB3#FFFFFF#000000##FFFFFF
##662FB31.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662fb3;
/* rgb */ color: rgb(102, 47, 179);
/* oklch */ color: oklch(45.6% 0.195 296.9);
Tailwind
colors: {
  custom: {
    50: '#996dcb',
    500: '#662fb3',
    950: '#000000',
  },
}
SCSS
$custom: #662fb3;
$custom-light: #996dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#662fb3",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 265,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45597,
    "c": 0.19457,
    "h": 296.9
  },
  "luminance": 0.08112
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #662FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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