#4F2EAD#4F2EAD

#4F2EAD is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.188 H 287.4°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#4F2EAD
RGBrgb(79, 46, 173)
HSLhsl(256, 58%, 43%)
HSVhsv(256, 73%, 68%)
CMYKcmyk(54.3%, 73.4%, 0%, 32.2%)
CIE-LABlab(30.96, 46.63, -62.51)
CIE-LCHlch(30.96, 77.98, 306.72°)
OKLaboklab(42.54% 0.0563 -0.1797)
OKLCHoklch(42.54% 0.188 287.4)
XYZxyz(11.7420, 6.6328, 40.1886)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EAD #8CAD2E
analogous
#2E4CAD #4F2EAD #8F2EAD
triadic
#4F2EAD #AD4F2E #2EAD4F
tetradic
#4F2EAD #AD2E4C #8CAD2E #2EAD8F
square
#4F2EAD #AD2E4C #8CAD2E #2EAD8F
split-complementary
#4F2EAD #AD8F2E #4CAD2E
monochromatic
#23144C #39217D #4F2EAD #6C49CF #937ADC

Accessibility & contrast

On white

9.03
#4F2EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4F2EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EAD
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EAD#FFFFFF#000000##FFFFFF
##4F2EAD1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB1
Deuteranopia (green-blind)
#0045AB
Tritanopia (blue-blind)
#28506B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f2ead;
/* rgb */ color: rgb(79, 46, 173);
/* oklch */ color: oklch(42.5% 0.188 287.4);
Tailwind
colors: {
  custom: {
    50: '#8a6ac7',
    500: '#4f2ead',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ead;
$custom-light: #8a6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ead",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 173
  },
  "hsl": {
    "h": 255.591,
    "s": 57.991,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42543,
    "c": 0.18835,
    "h": 287.4
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#4F2EAD
secondary
#AFC473
accent
#E147B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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