#4B2987#4B2987

#4B2987 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.148 H 295.0°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#4B2987
RGBrgb(75, 41, 135)
HSLhsl(262, 53%, 35%)
HSVhsv(262, 70%, 53%)
CMYKcmyk(44.4%, 69.6%, 0%, 47.1%)
CIE-LABlab(26.25, 37.63, -47.00)
CIE-LCHlch(26.25, 60.21, 308.68°)
OKLaboklab(38.07% 0.0626 -0.1343)
OKLCHoklch(38.07% 0.148 295)
XYZxyz(8.0666, 4.8308, 23.4244)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2987 #658729
analogous
#293687 #4B2987 #7A2987
triadic
#4B2987 #874B29 #29874B
tetradic
#4B2987 #872936 #658729 #29877A
square
#4B2987 #872936 #658729 #29877A
split-complementary
#4B2987 #877A29 #368729
monochromatic
#170C29 #311B58 #4B2987 #6537B6 #865DCE

Accessibility & contrast

On white

10.68
#4B2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4B2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2987
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2987#FFFFFF#000000##FFFFFF
##4B29871.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#3B4054
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4b2987;
/* rgb */ color: rgb(75, 41, 135);
/* oklch */ color: oklch(38.1% 0.148 295.0);
Tailwind
colors: {
  custom: {
    50: '#8365ab',
    500: '#4b2987',
    950: '#000000',
  },
}
SCSS
$custom: #4b2987;
$custom-light: #8365ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2987",
  "rgb": {
    "r": 75,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 261.702,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38067,
    "c": 0.14821,
    "h": 295
  },
  "luminance": 0.04831
}

Semantic roles & 50–950 ramp

primary
#4B2987
secondary
#92B359
accent
#DD4BA8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4B2987

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

Preview Lab → · Contrast checker → · Palette generator →

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