#662974#662974

#662974 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.1% C 0.134 H 319.7°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#662974
RGBrgb(102, 41, 116)
HSLhsl(289, 48%, 31%)
HSVhsv(289, 65%, 45%)
CMYKcmyk(12.1%, 64.7%, 0%, 54.5%)
CIE-LABlab(28.57, 39.31, -31.10)
CIE-LCHlch(28.57, 50.13, 321.65°)
OKLaboklab(40.11% 0.1024 -0.0868)
OKLCHoklch(40.11% 0.134 319.7)
XYZxyz(9.4244, 5.6720, 17.1180)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662974 #377429
analogous
#402974 #662974 #74295C
triadic
#662974 #746629 #297466
tetradic
#662974 #744029 #377429 #295C74
square
#662974 #744029 #377429 #295C74
split-complementary
#662974 #5C7429 #297440
monochromatic
#16091A #3E1947 #662974 #8E39A1 #AE55C3

Accessibility & contrast

On white

9.84
#662974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#662974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662974
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662974#FFFFFF#000000##FFFFFF
##6629741.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163F76
Deuteranopia (green-blind)
#2F4672
Tritanopia (blue-blind)
#66354A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #662974;
/* rgb */ color: rgb(102, 41, 116);
/* oklch */ color: oklch(40.1% 0.134 319.7);
Tailwind
colors: {
  custom: {
    50: '#94679c',
    500: '#662974',
    950: '#000000',
  },
}
SCSS
$custom: #662974;
$custom-light: #94679c;
$custom-dark: #000000;
JSON
{
  "hex": "#662974",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 116
  },
  "hsl": {
    "h": 288.8,
    "s": 47.771,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40107,
    "c": 0.13422,
    "h": 319.7
  },
  "luminance": 0.05672
}

Semantic roles & 50–950 ramp

primary
#662974
secondary
#62A653
accent
#D7506A
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #662974

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

Preview Lab → · Contrast checker → · Palette generator →

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