#4B2FA4#4B2FA4

#4B2FA4 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.177 H 286.9°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4B2FA4
RGBrgb(75, 47, 164)
HSLhsl(254, 55%, 41%)
HSVhsv(254, 71%, 64%)
CMYKcmyk(54.3%, 71.3%, 0%, 35.7%)
CIE-LABlab(29.93, 42.81, -58.79)
CIE-LCHlch(29.93, 72.72, 306.07°)
OKLaboklab(41.47% 0.0514 -0.169)
OKLCHoklch(41.47% 0.177 286.9)
XYZxyz(10.6170, 6.2087, 35.7537)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2FA4 #88A42F
analogous
#2F4EA4 #4B2FA4 #862FA4
triadic
#4B2FA4 #A44B2F #2FA44B
tetradic
#4B2FA4 #A42F4E #88A42F #2FA486
square
#4B2FA4 #A42F4E #88A42F #2FA486
split-complementary
#4B2FA4 #A4862F #4EA42F
monochromatic
#1F1445 #352174 #4B2FA4 #6646CA #8D76D8

Accessibility & contrast

On white

9.37
#4B2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4B2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2FA4
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2FA4#FFFFFF#000000##FFFFFF
##4B2FA41.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#264E66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4b2fa4;
/* rgb */ color: rgb(75, 47, 164);
/* oklch */ color: oklch(41.5% 0.177 286.9);
Tailwind
colors: {
  custom: {
    50: '#876ac0',
    500: '#4b2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #4b2fa4;
$custom-light: #876ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2fa4",
  "rgb": {
    "r": 75,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 254.359,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41472,
    "c": 0.17664,
    "h": 286.9
  },
  "luminance": 0.06209
}

Semantic roles & 50–950 ramp

primary
#4B2FA4
secondary
#ACC06F
accent
#DF49BB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4B2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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