#662FAF#662FAF

#662FAF is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.190 H 297.9°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#662FAF
RGBrgb(102, 47, 175)
HSLhsl(266, 58%, 44%)
HSVhsv(266, 73%, 69%)
CMYKcmyk(41.7%, 73.1%, 0%, 31.4%)
CIE-LABlab(33.88, 50.49, -58.81)
CIE-LCHlch(33.88, 77.51, 310.65°)
OKLaboklab(45.26% 0.0889 -0.1681)
OKLCHoklch(45.26% 0.19 297.9)
XYZxyz(14.2319, 7.9527, 41.3343)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662FAF #78AF2F
analogous
#2F38AF #662FAF #A62FAF
triadic
#662FAF #AF662F #2FAF66
tetradic
#662FAF #AF2F38 #78AF2F #2FAFA6
square
#662FAF #AF2F38 #78AF2F #2FAFA6
split-complementary
#662FAF #AFA62F #38AF2F
monochromatic
#2E154F #4A227F #662FAF #844CCF #A57CDC

Accessibility & contrast

On white

8.11
#662FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#662FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662FAF
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662FAF#FFFFFF#000000##FFFFFF
##662FAF1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#54506C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #662faf;
/* rgb */ color: rgb(102, 47, 175);
/* oklch */ color: oklch(45.3% 0.190 297.9);
Tailwind
colors: {
  custom: {
    50: '#986dc8',
    500: '#662faf',
    950: '#000000',
  },
}
SCSS
$custom: #662faf;
$custom-light: #986dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#662faf",
  "rgb": {
    "r": 102,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 265.781,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4526,
    "c": 0.19018,
    "h": 297.9
  },
  "luminance": 0.07953
}

Semantic roles & 50–950 ramp

primary
#662FAF
secondary
#A2C475
accent
#E1479F
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #662FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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