#662EFF#662EFF

#662EFF is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.6% C 0.276 H 283.8°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#662EFF
RGBrgb(102, 46, 255)
HSLhsl(256, 100%, 59%)
HSVhsv(256, 82%, 100%)
CMYKcmyk(60%, 82%, 0%, 0%)
CIE-LABlab(41.21, 71.61, -92.88)
CIE-LCHlch(41.21, 117.28, 307.63°)
OKLaboklab(52.61% 0.066 -0.2678)
OKLCHoklch(52.61% 0.276 283.8)
XYZxyz(24.5009, 11.9971, 95.6129)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662EFF #C7FF2E
analogous
#2E5EFF #662EFF #CF2EFF
triadic
#662EFF #FF662E #2EFF66
tetradic
#662EFF #FF2E5E #C7FF2E #2EFFCF
square
#662EFF #FF2E5E #C7FF2E #2EFFCF
split-complementary
#662EFF #FFCF2E #5EFF2E
monochromatic
#3000B3 #4000F0 #662EFF #936BFF #C0A8FF

Accessibility & contrast

On white

6.18
#662EFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#662EFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #662EFF
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662EFF#FFFFFF#000000##FFFFFF
##662EFF1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067FF
Deuteranopia (green-blind)
#005AFB
Tritanopia (blue-blind)
#00709A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #662eff;
/* rgb */ color: rgb(102, 46, 255);
/* oklch */ color: oklch(52.6% 0.276 283.8);
Tailwind
colors: {
  custom: {
    50: '#a371ff',
    500: '#662eff',
    950: '#000000',
  },
}
SCSS
$custom: #662eff;
$custom-light: #a371ff;
$custom-dark: #000000;
JSON
{
  "hex": "#662eff",
  "rgb": {
    "r": 102,
    "g": 46,
    "b": 255
  },
  "hsl": {
    "h": 256.077,
    "s": 100,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52605,
    "c": 0.2758,
    "h": 283.8
  },
  "luminance": 0.11999
}

Semantic roles & 50–950 ramp

primary
#662EFF
secondary
#D7ED9B
accent
#FF29C6
background
#FBF7FF
surface
#F6EDFF
border
#D0C8D7
text
#110818
muted
#807B86

Preview Lab

Preview with #662EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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