#4F2EA0#4F2EA0

#4F2EA0 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.173 H 290.0°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4F2EA0
RGBrgb(79, 46, 160)
HSLhsl(257, 55%, 40%)
HSVhsv(257, 71%, 63%)
CMYKcmyk(50.6%, 71.2%, 0%, 37.3%)
CIE-LABlab(29.80, 42.85, -56.57)
CIE-LCHlch(29.80, 70.97, 307.14°)
OKLaboklab(41.36% 0.059 -0.1623)
OKLCHoklch(41.36% 0.173 290)
XYZxyz(10.5448, 6.1539, 33.8831)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EA0 #7FA02E
analogous
#2E46A0 #4F2EA0 #882EA0
triadic
#4F2EA0 #A04F2E #2EA04F
tetradic
#4F2EA0 #A02E46 #7FA02E #2EA088
square
#4F2EA0 #A02E46 #7FA02E #2EA088
split-complementary
#4F2EA0 #A0882E #46A02E
monochromatic
#201341 #382070 #4F2EA0 #6942C9 #8F72D6

Accessibility & contrast

On white

9.41
#4F2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4F2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EA0
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EA0#FFFFFF#000000##FFFFFF
##4F2EA01.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#334B63
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2ea0;
/* rgb */ color: rgb(79, 46, 160);
/* oklch */ color: oklch(41.4% 0.173 290.0);
Tailwind
colors: {
  custom: {
    50: '#886abd',
    500: '#4f2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ea0;
$custom-light: #886abd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ea0",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 257.368,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41364,
    "c": 0.17274,
    "h": 290
  },
  "luminance": 0.06154
}

Semantic roles & 50–950 ramp

primary
#4F2EA0
secondary
#A6BE6C
accent
#DF49B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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