#4B2D87#4B2D87

#4B2D87 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.143 H 294.0°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#4B2D87
RGBrgb(75, 45, 135)
HSLhsl(260, 50%, 35%)
HSVhsv(260, 67%, 53%)
CMYKcmyk(44.4%, 66.7%, 0%, 47.1%)
CIE-LABlab(27.08, 35.36, -45.65)
CIE-LCHlch(27.08, 57.74, 307.76°)
OKLaboklab(38.67% 0.0581 -0.1304)
OKLCHoklch(38.67% 0.143 294)
XYZxyz(8.2120, 5.1217, 23.4729)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2D87 #69872D
analogous
#2D3C87 #4B2D87 #782D87
triadic
#4B2D87 #874B2D #2D874B
tetradic
#4B2D87 #872D3C #69872D #2D8778
square
#4B2D87 #872D3C #69872D #2D8778
split-complementary
#4B2D87 #87782D #3C872D
monochromatic
#180E2B #311E59 #4B2D87 #643CB5 #8663CB

Accessibility & contrast

On white

10.37
#4B2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4B2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2D87
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2D87#FFFFFF#000000##FFFFFF
##4B2D871.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#3A4256
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4b2d87;
/* rgb */ color: rgb(75, 45, 135);
/* oklch */ color: oklch(38.7% 0.143 294.0);
Tailwind
colors: {
  custom: {
    50: '#8268ab',
    500: '#4b2d87',
    950: '#000000',
  },
}
SCSS
$custom: #4b2d87;
$custom-light: #8268ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2d87",
  "rgb": {
    "r": 75,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 260,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38665,
    "c": 0.14275,
    "h": 294
  },
  "luminance": 0.05122
}

Semantic roles & 50–950 ramp

primary
#4B2D87
secondary
#96B25E
accent
#DA4EAB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4B2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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