#4F2EA6#4F2EA6

#4F2EA6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.180 H 288.7°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4F2EA6
RGBrgb(79, 46, 166)
HSLhsl(257, 57%, 42%)
HSVhsv(257, 72%, 65%)
CMYKcmyk(52.4%, 72.3%, 0%, 34.9%)
CIE-LABlab(30.32, 44.59, -59.34)
CIE-LCHlch(30.32, 74.22, 306.93°)
OKLaboklab(41.9% 0.0578 -0.1705)
OKLCHoklch(41.9% 0.18 288.7)
XYZxyz(11.0824, 6.3689, 36.7144)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EA6 #85A62E
analogous
#2E49A6 #4F2EA6 #8B2EA6
triadic
#4F2EA6 #A64F2E #2EA64F
tetradic
#4F2EA6 #A62E49 #85A62E #2EA68B
square
#4F2EA6 #A62E49 #85A62E #2EA68B
split-complementary
#4F2EA6 #A68B2E #49A62E
monochromatic
#211346 #382176 #4F2EA6 #6A46CC #9176D9

Accessibility & contrast

On white

9.24
#4F2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4F2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EA6
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EA6#FFFFFF#000000##FFFFFF
##4F2EA61.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#2F4E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2ea6;
/* rgb */ color: rgb(79, 46, 166);
/* oklch */ color: oklch(41.9% 0.180 288.7);
Tailwind
colors: {
  custom: {
    50: '#896ac1',
    500: '#4f2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ea6;
$custom-light: #896ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ea6",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 256.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41902,
    "c": 0.17999,
    "h": 288.7
  },
  "luminance": 0.06369
}

Semantic roles & 50–950 ramp

primary
#4F2EA6
secondary
#AAC16F
accent
#E048B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #4F2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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