#662BAF#662BAF

#662BAF is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.8% C 0.195 H 298.4°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#662BAF
RGBrgb(102, 43, 175)
HSLhsl(267, 61%, 43%)
HSVhsv(267, 75%, 69%)
CMYKcmyk(41.7%, 75.4%, 0%, 31.4%)
CIE-LABlab(33.24, 52.32, -59.86)
CIE-LCHlch(33.24, 79.51, 311.16°)
OKLaboklab(44.8% 0.0926 -0.1712)
OKLCHoklch(44.8% 0.195 298.4)
XYZxyz(14.0792, 7.6475, 41.2835)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662BAF #74AF2B
analogous
#2B32AF #662BAF #A82BAF
triadic
#662BAF #AF662B #2BAF66
tetradic
#662BAF #AF2B32 #74AF2B #2BAFA8
square
#662BAF #AF2B32 #74AF2B #2BAFA8
split-complementary
#662BAF #AFA82B #32AF2B
monochromatic
#2D134D #491F7E #662BAF #8446D1 #A577DE

Accessibility & contrast

On white

8.30
#662BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#662BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662BAF
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662BAF#FFFFFF#000000##FFFFFF
##662BAF1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#004DAC
Tritanopia (blue-blind)
#544E6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #662baf;
/* rgb */ color: rgb(102, 43, 175);
/* oklch */ color: oklch(44.8% 0.195 298.4);
Tailwind
colors: {
  custom: {
    50: '#986bc8',
    500: '#662baf',
    950: '#000000',
  },
}
SCSS
$custom: #662baf;
$custom-light: #986bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#662baf",
  "rgb": {
    "r": 102,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 266.818,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44804,
    "c": 0.19461,
    "h": 298.4
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#662BAF
secondary
#9FC570
accent
#E4449C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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