#4D3287#4D3287

#4D3287 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.7% C 0.136 H 294.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#4D3287
RGBrgb(77, 50, 135)
HSLhsl(259, 46%, 36%)
HSVhsv(259, 63%, 53%)
CMYKcmyk(43%, 63%, 0%, 47.1%)
CIE-LABlab(28.40, 32.85, -43.50)
CIE-LCHlch(28.40, 54.51, 307.06°)
OKLaboklab(39.68% 0.0551 -0.124)
OKLCHoklch(39.68% 0.136 294)
XYZxyz(8.5732, 5.6080, 23.5477)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D3287 #6C8732
analogous
#324287 #4D3287 #783287
triadic
#4D3287 #874D32 #32874D
tetradic
#4D3287 #873242 #6C8732 #328778
square
#4D3287 #873242 #6C8732 #328778
split-complementary
#4D3287 #877832 #428732
monochromatic
#1A112E #34215A #4D3287 #6643B4 #896BC8

Accessibility & contrast

On white

9.90
#4D3287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4D3287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D3287
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D3287#FFFFFF#000000##FFFFFF
##4D32871.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#004285
Tritanopia (blue-blind)
#3D4557
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4d3287;
/* rgb */ color: rgb(77, 50, 135);
/* oklch */ color: oklch(39.7% 0.136 294.0);
Tailwind
colors: {
  custom: {
    50: '#836bab',
    500: '#4d3287',
    950: '#000000',
  },
}
SCSS
$custom: #4d3287;
$custom-light: #836bab;
$custom-dark: #000000;
JSON
{
  "hex": "#4d3287",
  "rgb": {
    "r": 77,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 259.059,
    "s": 45.946,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39677,
    "c": 0.13568,
    "h": 294
  },
  "luminance": 0.05608
}

Semantic roles & 50–950 ramp

primary
#4D3287
secondary
#98B065
accent
#D652AC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4D3287

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

Preview Lab → · Contrast checker → · Palette generator →

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