#662EB3#662EB3

#662EB3 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.5% C 0.196 H 297.0°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#662EB3
RGBrgb(102, 46, 179)
HSLhsl(265, 59%, 44%)
HSVhsv(265, 74%, 70%)
CMYKcmyk(43%, 74.3%, 0%, 29.8%)
CIE-LABlab(34.05, 51.98, -60.92)
CIE-LCHlch(34.05, 80.08, 310.48°)
OKLaboklab(45.48% 0.0889 -0.1743)
OKLCHoklch(45.48% 0.196 297)
XYZxyz(14.5910, 8.0332, 43.4209)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EB3 #7BB32E
analogous
#2E39B3 #662EB3 #A92EB3
triadic
#662EB3 #B3662E #2EB366
tetradic
#662EB3 #B32E39 #7BB32E #2EB3A9
square
#662EB3 #B32E39 #7BB32E #2EB3A9
split-complementary
#662EB3 #B3A92E #39B32E
monochromatic
#2F1552 #4A2182 #662EB3 #854DD1 #A67EDE

Accessibility & contrast

On white

8.06
#662EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#662EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662EB3
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EB3#FFFFFF#000000##FFFFFF
##662EB31.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#52516E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #662eb3;
/* rgb */ color: rgb(102, 46, 179);
/* oklch */ color: oklch(45.5% 0.196 297.0);
Tailwind
colors: {
  custom: {
    50: '#996ccb',
    500: '#662eb3',
    950: '#000000',
  },
}
SCSS
$custom: #662eb3;
$custom-light: #996ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#662eb3",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 265.263,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45481,
    "c": 0.19567,
    "h": 297
  },
  "luminance": 0.08033
}

Semantic roles & 50–950 ramp

primary
#662EB3
secondary
#A5C676
accent
#E246A0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #662EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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