#4F2EA5#4F2EA5

#4F2EA5 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.179 H 288.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#4F2EA5
RGBrgb(79, 46, 165)
HSLhsl(257, 56%, 41%)
HSVhsv(257, 72%, 65%)
CMYKcmyk(52.1%, 72.1%, 0%, 35.3%)
CIE-LABlab(30.24, 44.30, -58.88)
CIE-LCHlch(30.24, 73.68, 306.96°)
OKLaboklab(41.81% 0.058 -0.1691)
OKLCHoklch(41.81% 0.179 288.9)
XYZxyz(10.9910, 6.3324, 36.2332)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EA5 #84A52E
analogous
#2E49A5 #4F2EA5 #8B2EA5
triadic
#4F2EA5 #A54F2E #2EA54F
tetradic
#4F2EA5 #A52E49 #84A52E #2EA58B
square
#4F2EA5 #A52E49 #84A52E #2EA58B
split-complementary
#4F2EA5 #A58B2E #49A52E
monochromatic
#211345 #382175 #4F2EA5 #6A45CB #9175D8

Accessibility & contrast

On white

9.26
#4F2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2EA5
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EA5#FFFFFF#000000##FFFFFF
##4F2EA51.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#2F4D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2ea5;
/* rgb */ color: rgb(79, 46, 165);
/* oklch */ color: oklch(41.8% 0.179 288.9);
Tailwind
colors: {
  custom: {
    50: '#896ac1',
    500: '#4f2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ea5;
$custom-light: #896ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ea5",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 256.639,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41812,
    "c": 0.17879,
    "h": 288.9
  },
  "luminance": 0.06333
}

Semantic roles & 50–950 ramp

primary
#4F2EA5
secondary
#AAC06F
accent
#E048B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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