#4B287D#4B287D

#4B287D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.137 H 298.3°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#4B287D
RGBrgb(75, 40, 125)
HSLhsl(265, 52%, 32%)
HSVhsv(265, 68%, 49%)
CMYKcmyk(40%, 68%, 0%, 51%)
CIE-LABlab(25.24, 35.36, -42.35)
CIE-LCHlch(25.24, 55.17, 309.86°)
OKLaboklab(37.09% 0.0651 -0.1207)
OKLCHoklch(37.09% 0.137 298.3)
XYZxyz(7.3612, 4.4940, 19.8777)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B287D #5A7D28
analogous
#28307D #4B287D #76287D
triadic
#4B287D #7D4B28 #287D4B
tetradic
#4B287D #7D2830 #5A7D28 #287D76
square
#4B287D #7D2830 #5A7D28 #287D76
split-complementary
#4B287D #7D7628 #307D28
monochromatic
#130A20 #2F194F #4B287D #6737AB #8656C9

Accessibility & contrast

On white

11.06
#4B287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4B287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B287D
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B287D#FFFFFF#000000##FFFFFF
##4B287D1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#3F3C4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b287d;
/* rgb */ color: rgb(75, 40, 125);
/* oklch */ color: oklch(37.1% 0.137 298.3);
Tailwind
colors: {
  custom: {
    50: '#8264a3',
    500: '#4b287d',
    950: '#000000',
  },
}
SCSS
$custom: #4b287d;
$custom-light: #8264a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b287d",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 264.706,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37092,
    "c": 0.13712,
    "h": 298.3
  },
  "luminance": 0.04494
}

Semantic roles & 50–950 ramp

primary
#4B287D
secondary
#88AE53
accent
#DB4DA0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4B287D

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

Preview Lab → · Contrast checker → · Palette generator →

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