#4B2FA1#4B2FA1

#4B2FA1 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.173 H 287.5°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#4B2FA1
RGBrgb(75, 47, 161)
HSLhsl(255, 55%, 41%)
HSVhsv(255, 71%, 63%)
CMYKcmyk(53.4%, 70.8%, 0%, 36.9%)
CIE-LABlab(29.67, 41.92, -57.41)
CIE-LCHlch(29.67, 71.08, 306.14°)
OKLaboklab(41.2% 0.052 -0.1649)
OKLCHoklch(41.2% 0.173 287.5)
XYZxyz(10.3493, 6.1016, 34.3437)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2FA1 #85A12F
analogous
#2F4CA1 #4B2FA1 #842FA1
triadic
#4B2FA1 #A14B2F #2FA14B
tetradic
#4B2FA1 #A12F4C #85A12F #2FA184
square
#4B2FA1 #A12F4C #85A12F #2FA184
split-complementary
#4B2FA1 #A1842F #4CA12F
monochromatic
#1F1342 #352172 #4B2FA1 #6545C9 #8C74D6

Accessibility & contrast

On white

9.46
#4B2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4B2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2FA1
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2FA1#FFFFFF#000000##FFFFFF
##4B2FA11.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#294D64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4b2fa1;
/* rgb */ color: rgb(75, 47, 161);
/* oklch */ color: oklch(41.2% 0.173 287.5);
Tailwind
colors: {
  custom: {
    50: '#866abe',
    500: '#4b2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #4b2fa1;
$custom-light: #866abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2fa1",
  "rgb": {
    "r": 75,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 254.737,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41201,
    "c": 0.17295,
    "h": 287.5
  },
  "luminance": 0.06102
}

Semantic roles & 50–950 ramp

primary
#4B2FA1
secondary
#AABE6E
accent
#DE4ABA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4B2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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