#662498#662498

#662498 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.178 H 305.8°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#662498
RGBrgb(102, 36, 152)
HSLhsl(274, 62%, 37%)
HSVhsv(274, 76%, 60%)
CMYKcmyk(32.9%, 76.3%, 0%, 40.4%)
CIE-LABlab(30.29, 49.75, -50.78)
CIE-LCHlch(30.29, 71.09, 314.42°)
OKLaboklab(42.14% 0.1043 -0.1444)
OKLCHoklch(42.14% 0.178 305.8)
XYZxyz(11.7766, 6.3536, 30.3056)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662498 #569824
analogous
#2C2498 #662498 #982490
triadic
#662498 #986624 #249866
tetradic
#662498 #982C24 #569824 #249098
square
#662498 #982C24 #569824 #249098
split-complementary
#662498 #909824 #24982C
monochromatic
#240D35 #451867 #662498 #8730C9 #A45ED9

Accessibility & contrast

On white

9.25
#662498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#662498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662498
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662498#FFFFFF#000000##FFFFFF
##6624981.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #662498;
/* rgb */ color: rgb(102, 36, 152);
/* oklch */ color: oklch(42.1% 0.178 305.8);
Tailwind
colors: {
  custom: {
    50: '#9766b7',
    500: '#662498',
    950: '#000000',
  },
}
SCSS
$custom: #662498;
$custom-light: #9766b7;
$custom-dark: #000000;
JSON
{
  "hex": "#662498",
  "rgb": {
    "r": 102,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 274.138,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42141,
    "c": 0.17817,
    "h": 305.8
  },
  "luminance": 0.06354
}

Semantic roles & 50–950 ramp

primary
#662498
secondary
#85BE5A
accent
#E54389
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662498

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

Preview Lab → · Contrast checker → · Palette generator →

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