#4F2EA4#4F2EA4

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

Color values

HEX#4F2EA4
RGBrgb(79, 46, 164)
HSLhsl(257, 56%, 41%)
HSVhsv(257, 72%, 64%)
CMYKcmyk(51.8%, 72%, 0%, 35.7%)
CIE-LABlab(30.15, 44.01, -58.42)
CIE-LCHlch(30.15, 73.14, 306.99°)
OKLaboklab(41.72% 0.0582 -0.1678)
OKLCHoklch(41.72% 0.178 289.1)
XYZxyz(10.9003, 6.2961, 35.7557)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EA4 #83A42E
analogous
#2E48A4 #4F2EA4 #8A2EA4
triadic
#4F2EA4 #A44F2E #2EA44F
tetradic
#4F2EA4 #A42E48 #83A42E #2EA48A
square
#4F2EA4 #A42E48 #83A42E #2EA48A
split-complementary
#4F2EA4 #A48A2E #48A42E
monochromatic
#211344 #382174 #4F2EA4 #6A45CB #9074D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F2EA4#FFFFFF#000000##FFFFFF
##4F2EA41.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)
#0049A7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#304D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2ea4;
/* rgb */ color: rgb(79, 46, 164);
/* oklch */ color: oklch(41.7% 0.178 289.1);
Tailwind
colors: {
  custom: {
    50: '#896ac0',
    500: '#4f2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ea4;
$custom-light: #896ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ea4",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 256.78,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41722,
    "c": 0.17758,
    "h": 289.1
  },
  "luminance": 0.06297
}

Semantic roles & 50–950 ramp

primary
#4F2EA4
secondary
#A9C06E
accent
#DF48B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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