#4B2FA5#4B2FA5

#4B2FA5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.178 H 286.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4B2FA5
RGBrgb(75, 47, 165)
HSLhsl(254, 56%, 42%)
HSVhsv(254, 72%, 65%)
CMYKcmyk(54.5%, 71.5%, 0%, 35.3%)
CIE-LABlab(30.02, 43.11, -59.24)
CIE-LCHlch(30.02, 73.27, 306.04°)
OKLaboklab(41.56% 0.0512 -0.1703)
OKLCHoklch(41.56% 0.178 286.7)
XYZxyz(10.7077, 6.2449, 36.2312)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2FA5 #89A52F
analogous
#2F4EA5 #4B2FA5 #862FA5
triadic
#4B2FA5 #A54B2F #2FA54B
tetradic
#4B2FA5 #A52F4E #89A52F #2FA586
square
#4B2FA5 #A52F4E #89A52F #2FA586
split-complementary
#4B2FA5 #A5862F #4EA52F
monochromatic
#201446 #352175 #4B2FA5 #6647CB #8E76D8

Accessibility & contrast

On white

9.34
#4B2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4B2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2FA5
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2FA5#FFFFFF#000000##FFFFFF
##4B2FA51.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#254E67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4b2fa5;
/* rgb */ color: rgb(75, 47, 165);
/* oklch */ color: oklch(41.6% 0.178 286.7);
Tailwind
colors: {
  custom: {
    50: '#876ac1',
    500: '#4b2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #4b2fa5;
$custom-light: #876ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2fa5",
  "rgb": {
    "r": 75,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 254.237,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41563,
    "c": 0.17787,
    "h": 286.7
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#4B2FA5
secondary
#ADC070
accent
#DF49BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4B2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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