#4B2F9F#4B2F9F

#4B2F9F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.170 H 287.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#4B2F9F
RGBrgb(75, 47, 159)
HSLhsl(255, 54%, 40%)
HSVhsv(255, 70%, 62%)
CMYKcmyk(52.8%, 70.4%, 0%, 37.6%)
CIE-LABlab(29.49, 41.32, -56.48)
CIE-LCHlch(29.49, 69.98, 306.19°)
OKLaboklab(41.02% 0.0524 -0.1622)
OKLCHoklch(41.02% 0.17 287.9)
XYZxyz(10.1743, 6.0316, 33.4223)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2F9F #839F2F
analogous
#2F4B9F #4B2F9F #832F9F
triadic
#4B2F9F #9F4B2F #2F9F4B
tetradic
#4B2F9F #9F2F4B #839F2F #2F9F83
square
#4B2F9F #9F2F4B #839F2F #2F9F83
split-complementary
#4B2F9F #9F832F #4B9F2F
monochromatic
#1E1341 #352170 #4B2F9F #6544C8 #8C73D6

Accessibility & contrast

On white

9.52
#4B2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4B2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2F9F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2F9F#FFFFFF#000000##FFFFFF
##4B2F9F1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#2B4C63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4b2f9f;
/* rgb */ color: rgb(75, 47, 159);
/* oklch */ color: oklch(41.0% 0.170 287.9);
Tailwind
colors: {
  custom: {
    50: '#866abc',
    500: '#4b2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #4b2f9f;
$custom-light: #866abc;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2f9f",
  "rgb": {
    "r": 75,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 255,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41021,
    "c": 0.17047,
    "h": 287.9
  },
  "luminance": 0.06032
}

Semantic roles & 50–950 ramp

primary
#4B2F9F
secondary
#A9BD6D
accent
#DE4AB9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4B2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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