#662995#662995

#662995 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.169 H 306.2°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#662995
RGBrgb(102, 41, 149)
HSLhsl(274, 57%, 37%)
HSVhsv(274, 72%, 58%)
CMYKcmyk(31.5%, 72.5%, 0%, 41.6%)
CIE-LABlab(30.83, 46.83, -48.05)
CIE-LCHlch(30.83, 67.10, 314.26°)
OKLaboklab(42.45% 0.0999 -0.1365)
OKLCHoklch(42.45% 0.169 306.2)
XYZxyz(11.6961, 6.5807, 29.0820)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662995 #589529
analogous
#302995 #662995 #95298E
triadic
#662995 #956629 #299566
tetradic
#662995 #953029 #589529 #298E95
square
#662995 #953029 #589529 #298E95
split-complementary
#662995 #8E9529 #299530
monochromatic
#240F35 #451C65 #662995 #8736C5 #A364D4

Accessibility & contrast

On white

9.07
#662995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#662995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662995
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662995#FFFFFF#000000##FFFFFF
##6629951.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004993
Tritanopia (blue-blind)
#5E425C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #662995;
/* rgb */ color: rgb(102, 41, 149);
/* oklch */ color: oklch(42.5% 0.169 306.2);
Tailwind
colors: {
  custom: {
    50: '#9668b5',
    500: '#662995',
    950: '#000000',
  },
}
SCSS
$custom: #662995;
$custom-light: #9668b5;
$custom-dark: #000000;
JSON
{
  "hex": "#662995",
  "rgb": {
    "r": 102,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 273.889,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42453,
    "c": 0.16913,
    "h": 306.2
  },
  "luminance": 0.06581
}

Semantic roles & 50–950 ramp

primary
#662995
secondary
#87BA60
accent
#E0488A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #662995

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

Preview Lab → · Contrast checker → · Palette generator →

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