#662E98#662E98

#662E98 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.166 H 304.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#662E98
RGBrgb(102, 46, 152)
HSLhsl(272, 54%, 39%)
HSVhsv(272, 70%, 60%)
CMYKcmyk(32.9%, 69.7%, 0%, 40.4%)
CIE-LABlab(31.91, 45.17, -48.14)
CIE-LCHlch(31.91, 66.02, 313.18°)
OKLaboklab(43.29% 0.094 -0.1368)
OKLCHoklch(43.29% 0.166 304.5)
XYZxyz(12.1227, 7.0458, 30.4210)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662E98 #60982E
analogous
#312E98 #662E98 #982E95
triadic
#662E98 #98662E #2E9866
tetradic
#662E98 #98312E #60982E #2E9598
square
#662E98 #98312E #60982E #2E9598
split-complementary
#662E98 #95982E #2E9831
monochromatic
#27123A #462069 #662E98 #853EC5 #A36DD3

Accessibility & contrast

On white

8.72
#662E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#662E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662E98
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662E98#FFFFFF#000000##FFFFFF
##662E981.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#024B96
Tritanopia (blue-blind)
#5D465F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #662e98;
/* rgb */ color: rgb(102, 46, 152);
/* oklch */ color: oklch(43.3% 0.166 304.5);
Tailwind
colors: {
  custom: {
    50: '#966bb7',
    500: '#662e98',
    950: '#000000',
  },
}
SCSS
$custom: #662e98;
$custom-light: #966bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#662e98",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 271.698,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43293,
    "c": 0.16596,
    "h": 304.5
  },
  "luminance": 0.07046
}

Semantic roles & 50–950 ramp

primary
#662E98
secondary
#8FBA68
accent
#DD4B90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #662E98

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

Preview Lab → · Contrast checker → · Palette generator →

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