#4B2F87#4B2F87

#4B2F87 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.140 H 293.5°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#4B2F87
RGBrgb(75, 47, 135)
HSLhsl(259, 48%, 36%)
HSVhsv(259, 65%, 53%)
CMYKcmyk(44.4%, 65.2%, 0%, 47.1%)
CIE-LABlab(27.51, 34.19, -44.95)
CIE-LCHlch(27.51, 56.47, 307.26°)
OKLaboklab(38.98% 0.0558 -0.1283)
OKLCHoklch(38.98% 0.14 293.5)
XYZxyz(8.2902, 5.2779, 23.4989)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2F87 #6B872F
analogous
#2F3F87 #4B2F87 #772F87
triadic
#4B2F87 #874B2F #2F874B
tetradic
#4B2F87 #872F3F #6B872F #2F8777
square
#4B2F87 #872F3F #6B872F #2F8777
split-complementary
#4B2F87 #87772F #3F872F
monochromatic
#190F2C #321F5A #4B2F87 #643FB4 #8666CA

Accessibility & contrast

On white

10.22
#4B2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4B2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2F87
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2F87#FFFFFF#000000##FFFFFF
##4B2F871.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#3A4356
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4b2f87;
/* rgb */ color: rgb(75, 47, 135);
/* oklch */ color: oklch(39.0% 0.140 293.5);
Tailwind
colors: {
  custom: {
    50: '#8269ab',
    500: '#4b2f87',
    950: '#000000',
  },
}
SCSS
$custom: #4b2f87;
$custom-light: #8269ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2f87",
  "rgb": {
    "r": 75,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 259.091,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38979,
    "c": 0.13993,
    "h": 293.5
  },
  "luminance": 0.05278
}

Semantic roles & 50–950 ramp

primary
#4B2F87
secondary
#97B161
accent
#D850AD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4B2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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