#4F2AAC#4F2AAC

#4F2AAC is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.191 H 288.2°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#4F2AAC
RGBrgb(79, 42, 172)
HSLhsl(257, 61%, 42%)
HSVhsv(257, 76%, 67%)
CMYKcmyk(54.1%, 75.6%, 0%, 32.5%)
CIE-LABlab(30.15, 48.36, -63.23)
CIE-LCHlch(30.15, 79.61, 307.41°)
OKLaboklab(41.95% 0.0597 -0.1819)
OKLCHoklch(41.95% 0.191 288.2)
XYZxyz(11.4966, 6.2962, 39.6312)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2AAC #87AC2A
analogous
#2A46AC #4F2AAC #902AAC
triadic
#4F2AAC #AC4F2A #2AAC4F
tetradic
#4F2AAC #AC2A46 #87AC2A #2AAC90
square
#4F2AAC #AC2A46 #87AC2A #2AAC90
split-complementary
#4F2AAC #AC902A #46AC2A
monochromatic
#22124A #381E7B #4F2AAC #6B42D1 #9173DD

Accessibility & contrast

On white

9.29
#4F2AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4F2AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2AAC
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2AAC#FFFFFF#000000##FFFFFF
##4F2AAC1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#294E69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2aac;
/* rgb */ color: rgb(79, 42, 172);
/* oklch */ color: oklch(41.9% 0.191 288.2);
Tailwind
colors: {
  custom: {
    50: '#8a68c6',
    500: '#4f2aac',
    950: '#000000',
  },
}
SCSS
$custom: #4f2aac;
$custom-light: #8a68c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2aac",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 257.077,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41945,
    "c": 0.19141,
    "h": 288.2
  },
  "luminance": 0.06297
}

Semantic roles & 50–950 ramp

primary
#4F2AAC
secondary
#ACC46D
accent
#E444B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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