#4B2786#4B2786

#4B2786 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.150 H 295.7°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4B2786
RGBrgb(75, 39, 134)
HSLhsl(263, 55%, 34%)
HSVhsv(263, 71%, 53%)
CMYKcmyk(44%, 70.9%, 0%, 47.5%)
CIE-LABlab(25.77, 38.44, -47.16)
CIE-LCHlch(25.77, 60.84, 309.19°)
OKLaboklab(37.7% 0.0649 -0.1348)
OKLCHoklch(37.7% 0.15 295.7)
XYZxyz(7.9291, 4.6679, 23.0329)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2786 #628627
analogous
#273386 #4B2786 #7B2786
triadic
#4B2786 #864B27 #27864B
tetradic
#4B2786 #862733 #628627 #27867B
square
#4B2786 #862733 #628627 #27867B
split-complementary
#4B2786 #867B27 #338627
monochromatic
#160B27 #301957 #4B2786 #6635B5 #8559CF

Accessibility & contrast

On white

10.86
#4B2786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4B2786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2786
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2786#FFFFFF#000000##FFFFFF
##4B27861.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#3B3E53
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4b2786;
/* rgb */ color: rgb(75, 39, 134);
/* oklch */ color: oklch(37.7% 0.150 295.7);
Tailwind
colors: {
  custom: {
    50: '#8364aa',
    500: '#4b2786',
    950: '#000000',
  },
}
SCSS
$custom: #4b2786;
$custom-light: #8364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2786",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 262.737,
    "s": 54.913,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37697,
    "c": 0.14962,
    "h": 295.7
  },
  "luminance": 0.04668
}

Semantic roles & 50–950 ramp

primary
#4B2786
secondary
#90B455
accent
#DE4AA6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4B2786

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

Preview Lab → · Contrast checker → · Palette generator →

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