#4B2FA7#4B2FA7

#4B2FA7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.180 H 286.4°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#4B2FA7
RGBrgb(75, 47, 167)
HSLhsl(254, 56%, 42%)
HSVhsv(254, 72%, 65%)
CMYKcmyk(55.1%, 71.9%, 0%, 34.5%)
CIE-LABlab(30.20, 43.71, -60.15)
CIE-LCHlch(30.20, 74.36, 306.00°)
OKLaboklab(41.75% 0.0508 -0.173)
OKLCHoklch(41.75% 0.18 286.4)
XYZxyz(10.8911, 6.3183, 37.1974)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2FA7 #8BA72F
analogous
#2F4FA7 #4B2FA7 #872FA7
triadic
#4B2FA7 #A74B2F #2FA74B
tetradic
#4B2FA7 #A72F4F #8BA72F #2FA787
square
#4B2FA7 #A72F4F #8BA72F #2FA787
split-complementary
#4B2FA7 #A7872F #4FA72F
monochromatic
#201447 #362277 #4B2FA7 #6648CB #8E78D9

Accessibility & contrast

On white

9.28
#4B2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4B2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2FA7
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2FA7#FFFFFF#000000##FFFFFF
##4B2FA71.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#234F68
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4b2fa7;
/* rgb */ color: rgb(75, 47, 167);
/* oklch */ color: oklch(41.7% 0.180 286.4);
Tailwind
colors: {
  custom: {
    50: '#876ac2',
    500: '#4b2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #4b2fa7;
$custom-light: #876ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2fa7",
  "rgb": {
    "r": 75,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 254,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41746,
    "c": 0.18032,
    "h": 286.4
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#4B2FA7
secondary
#AEC171
accent
#DF48BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4B2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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