#4F2AAA#4F2AAA

#4F2AAA is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.189 H 288.6°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#4F2AAA
RGBrgb(79, 42, 170)
HSLhsl(257, 60%, 42%)
HSVhsv(257, 75%, 67%)
CMYKcmyk(53.5%, 75.3%, 0%, 33.3%)
CIE-LABlab(29.96, 47.79, -62.34)
CIE-LCHlch(29.96, 78.55, 307.48°)
OKLaboklab(41.76% 0.0602 -0.1792)
OKLCHoklch(41.76% 0.189 288.6)
XYZxyz(11.3060, 6.2199, 38.6272)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AAA #85AA2A
analogous
#2A45AA #4F2AAA #8F2AAA
triadic
#4F2AAA #AA4F2A #2AAA4F
tetradic
#4F2AAA #AA2A45 #85AA2A #2AAA8F
square
#4F2AAA #AA2A45 #85AA2A #2AAA8F
split-complementary
#4F2AAA #AA8F2A #45AA2A
monochromatic
#211248 #381E79 #4F2AAA #6A41D0 #9172DC

Accessibility & contrast

On white

9.36
#4F2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4F2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AAA
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AAA#FFFFFF#000000##FFFFFF
##4F2AAA1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#2B4D68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2aaa;
/* rgb */ color: rgb(79, 42, 170);
/* oklch */ color: oklch(41.8% 0.189 288.6);
Tailwind
colors: {
  custom: {
    50: '#8a68c4',
    500: '#4f2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #4f2aaa;
$custom-light: #8a68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2aaa",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 257.344,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41756,
    "c": 0.18909,
    "h": 288.6
  },
  "luminance": 0.0622
}

Semantic roles & 50–950 ramp

primary
#4F2AAA
secondary
#AAC36C
accent
#E444B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

#4F2AAA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva