#662FAC#662FAC

#662FAC is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.187 H 298.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#662FAC
RGBrgb(102, 47, 172)
HSLhsl(266, 57%, 43%)
HSVhsv(266, 73%, 67%)
CMYKcmyk(40.7%, 72.7%, 0%, 32.5%)
CIE-LABlab(33.64, 49.72, -57.42)
CIE-LCHlch(33.64, 75.95, 310.89°)
OKLaboklab(45.01% 0.0895 -0.164)
OKLCHoklch(45.01% 0.187 298.6)
XYZxyz(13.9405, 7.8362, 39.7998)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FAC #75AC2F
analogous
#2F36AC #662FAC #A42FAC
triadic
#662FAC #AC662F #2FAC66
tetradic
#662FAC #AC2F36 #75AC2F #2FACA4
square
#662FAC #AC2F36 #75AC2F #2FACA4
split-complementary
#662FAC #ACA42F #36AC2F
monochromatic
#2D154C #49227C #662FAC #844BCE #A57BDB

Accessibility & contrast

On white

8.18
#662FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#662FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FAC
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FAC#FFFFFF#000000##FFFFFF
##662FAC1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#554E6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #662fac;
/* rgb */ color: rgb(102, 47, 172);
/* oklch */ color: oklch(45.0% 0.187 298.6);
Tailwind
colors: {
  custom: {
    50: '#986dc6',
    500: '#662fac',
    950: '#000000',
  },
}
SCSS
$custom: #662fac;
$custom-light: #986dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#662fac",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 266.4,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4501,
    "c": 0.18687,
    "h": 298.6
  },
  "luminance": 0.07836
}

Semantic roles & 50–950 ramp

primary
#662FAC
secondary
#A0C374
accent
#E0479D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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