#4F2EA7#4F2EA7

#4F2EA7 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.181 H 288.5°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#4F2EA7
RGBrgb(79, 46, 167)
HSLhsl(256, 57%, 42%)
HSVhsv(256, 72%, 65%)
CMYKcmyk(52.7%, 72.5%, 0%, 34.5%)
CIE-LABlab(30.41, 44.88, -59.79)
CIE-LCHlch(30.41, 74.76, 306.89°)
OKLaboklab(41.99% 0.0576 -0.1718)
OKLCHoklch(41.99% 0.181 288.5)
XYZxyz(11.1745, 6.4057, 37.1994)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EA7 #86A72E
analogous
#2E49A7 #4F2EA7 #8C2EA7
triadic
#4F2EA7 #A74F2E #2EA74F
tetradic
#4F2EA7 #A72E49 #86A72E #2EA78C
square
#4F2EA7 #A72E49 #86A72E #2EA78C
split-complementary
#4F2EA7 #A78C2E #49A72E
monochromatic
#221447 #382177 #4F2EA7 #6B46CC #9176D9

Accessibility & contrast

On white

9.21
#4F2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4F2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EA7
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EA7#FFFFFF#000000##FFFFFF
##4F2EA71.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#2E4E67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f2ea7;
/* rgb */ color: rgb(79, 46, 167);
/* oklch */ color: oklch(42.0% 0.181 288.5);
Tailwind
colors: {
  custom: {
    50: '#896ac2',
    500: '#4f2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ea7;
$custom-light: #896ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ea7",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 256.364,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41993,
    "c": 0.1812,
    "h": 288.5
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#4F2EA7
secondary
#ABC170
accent
#E048B7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #4F2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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