#4F2EB4#4F2EB4

#4F2EB4 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.197 H 286.1°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#4F2EB4
RGBrgb(79, 46, 180)
HSLhsl(255, 59%, 44%)
HSVhsv(255, 74%, 71%)
CMYKcmyk(56.1%, 74.4%, 0%, 29.4%)
CIE-LABlab(31.60, 48.66, -65.62)
CIE-LCHlch(31.60, 81.69, 306.56°)
OKLaboklab(43.2% 0.0546 -0.1889)
OKLCHoklch(43.2% 0.197 286.1)
XYZxyz(12.4372, 6.9108, 43.8497)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EB4 #93B42E
analogous
#2E50B4 #4F2EB4 #922EB4
triadic
#4F2EB4 #B44F2E #2EB44F
tetradic
#4F2EB4 #B42E50 #93B42E #2EB492
square
#4F2EB4 #B42E50 #93B42E #2EB492
split-complementary
#4F2EB4 #B4922E #50B42E
monochromatic
#241553 #3A2283 #4F2EB4 #6E4ED2 #967EDE

Accessibility & contrast

On white

8.81
#4F2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4F2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EB4
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EB4#FFFFFF#000000##FFFFFF
##4F2EB41.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#20536F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4f2eb4;
/* rgb */ color: rgb(79, 46, 180);
/* oklch */ color: oklch(43.2% 0.197 286.1);
Tailwind
colors: {
  custom: {
    50: '#8b6acc',
    500: '#4f2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #4f2eb4;
$custom-light: #8b6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2eb4",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 254.776,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43197,
    "c": 0.1966,
    "h": 286.1
  },
  "luminance": 0.06912
}

Semantic roles & 50–950 ramp

primary
#4F2EB4
secondary
#B3C777
accent
#E245BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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