#662298#662298

#662298 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.180 H 306.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#662298
RGBrgb(102, 34, 152)
HSLhsl(275, 63%, 36%)
HSVhsv(275, 78%, 60%)
CMYKcmyk(32.9%, 77.6%, 0%, 40.4%)
CIE-LABlab(30.00, 50.58, -51.24)
CIE-LCHlch(30.00, 72.00, 314.62°)
OKLaboklab(41.94% 0.1062 -0.1458)
OKLCHoklch(41.94% 0.18 306.1)
XYZxyz(11.7178, 6.2359, 30.2860)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662298 #549822
analogous
#2B2298 #662298 #98228F
triadic
#662298 #986622 #229866
tetradic
#662298 #982B22 #549822 #228F98
square
#662298 #982B22 #549822 #228F98
split-complementary
#662298 #8F9822 #22982B
monochromatic
#230C34 #441766 #662298 #882DCA #A45ADA

Accessibility & contrast

On white

9.34
#662298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#662298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662298
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662298#FFFFFF#000000##FFFFFF
##6622981.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#5D405C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #662298;
/* rgb */ color: rgb(102, 34, 152);
/* oklch */ color: oklch(41.9% 0.180 306.1);
Tailwind
colors: {
  custom: {
    50: '#9765b7',
    500: '#662298',
    950: '#000000',
  },
}
SCSS
$custom: #662298;
$custom-light: #9765b7;
$custom-dark: #000000;
JSON
{
  "hex": "#662298",
  "rgb": {
    "r": 102,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 274.576,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41938,
    "c": 0.18035,
    "h": 306.1
  },
  "luminance": 0.06236
}

Semantic roles & 50–950 ramp

primary
#662298
secondary
#83BE57
accent
#E64187
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662298

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

Preview Lab → · Contrast checker → · Palette generator →

#662298 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva