#4F2EB6#4F2EB6

#4F2EB6 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.199 H 285.8°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#4F2EB6
RGBrgb(79, 46, 182)
HSLhsl(255, 60%, 45%)
HSVhsv(255, 75%, 71%)
CMYKcmyk(56.6%, 74.7%, 0%, 28.6%)
CIE-LABlab(31.79, 49.24, -66.50)
CIE-LCHlch(31.79, 82.74, 306.52°)
OKLaboklab(43.39% 0.0541 -0.1914)
OKLCHoklch(43.39% 0.199 285.8)
XYZxyz(12.6424, 6.9929, 44.9305)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EB6 #95B62E
analogous
#2E51B6 #4F2EB6 #932EB6
triadic
#4F2EB6 #B64F2E #2EB64F
tetradic
#4F2EB6 #B62E51 #95B62E #2EB693
square
#4F2EB6 #B62E51 #95B62E #2EB693
split-complementary
#4F2EB6 #B6932E #51B62E
monochromatic
#251554 #3A2285 #4F2EB6 #6F4FD2 #9780DF

Accessibility & contrast

On white

8.75
#4F2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4F2EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EB6
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EB6#FFFFFF#000000##FFFFFF
##4F2EB61.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#1D5470
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f2eb6;
/* rgb */ color: rgb(79, 46, 182);
/* oklch */ color: oklch(43.4% 0.199 285.8);
Tailwind
colors: {
  custom: {
    50: '#8c6acd',
    500: '#4f2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #4f2eb6;
$custom-light: #8c6acd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2eb6",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 254.559,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43386,
    "c": 0.19894,
    "h": 285.8
  },
  "luminance": 0.06994
}

Semantic roles & 50–950 ramp

primary
#4F2EB6
secondary
#B4C878
accent
#E345BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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