#4F2EB7#4F2EB7

#4F2EB7 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.5% C 0.200 H 285.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#4F2EB7
RGBrgb(79, 46, 183)
HSLhsl(254, 60%, 45%)
HSVhsv(254, 75%, 72%)
CMYKcmyk(56.8%, 74.9%, 0%, 28.2%)
CIE-LABlab(31.89, 49.53, -66.94)
CIE-LCHlch(31.89, 83.27, 306.50°)
OKLaboklab(43.48% 0.0538 -0.1927)
OKLCHoklch(43.48% 0.2 285.6)
XYZxyz(12.7461, 7.0344, 45.4767)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EB7 #96B72E
analogous
#2E51B7 #4F2EB7 #942EB7
triadic
#4F2EB7 #B74F2E #2EB74F
tetradic
#4F2EB7 #B72E51 #96B72E #2EB794
square
#4F2EB7 #B72E51 #96B72E #2EB794
split-complementary
#4F2EB7 #B7942E #51B72E
monochromatic
#251555 #3A2286 #4F2EB7 #6F4FD3 #9780DF

Accessibility & contrast

On white

8.72
#4F2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4F2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EB7
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EB7#FFFFFF#000000##FFFFFF
##4F2EB71.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#1C5470
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f2eb7;
/* rgb */ color: rgb(79, 46, 183);
/* oklch */ color: oklch(43.5% 0.200 285.6);
Tailwind
colors: {
  custom: {
    50: '#8c6bce',
    500: '#4f2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #4f2eb7;
$custom-light: #8c6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2eb7",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 254.453,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43481,
    "c": 0.20011,
    "h": 285.6
  },
  "luminance": 0.07035
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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