#4D36B2#4D36B2

#4D36B2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.9% C 0.186 H 284.2°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#4D36B2
RGBrgb(77, 54, 178)
HSLhsl(251, 53%, 45%)
HSVhsv(251, 70%, 70%)
CMYKcmyk(56.7%, 69.7%, 0%, 30.2%)
CIE-LABlab(32.77, 43.48, -62.53)
CIE-LCHlch(32.77, 76.16, 304.81°)
OKLaboklab(43.92% 0.0456 -0.1799)
OKLCHoklch(43.92% 0.186 284.2)
XYZxyz(12.4132, 7.4297, 42.8908)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D36B2 #9BB236
analogous
#365DB2 #4D36B2 #8B36B2
triadic
#4D36B2 #B24D36 #36B24D
tetradic
#4D36B2 #B2365D #9BB236 #36B28B
square
#4D36B2 #B2365D #9BB236 #36B28B
split-complementary
#4D36B2 #B28B36 #5DB236
monochromatic
#241A54 #392883 #4D36B2 #6E59CD #9788DB

Accessibility & contrast

On white

8.45
#4D36B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4D36B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D36B2
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D36B2#FFFFFF#000000##FFFFFF
##4D36B21.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#1B5770
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4d36b2;
/* rgb */ color: rgb(77, 54, 178);
/* oklch */ color: oklch(43.9% 0.186 284.2);
Tailwind
colors: {
  custom: {
    50: '#896fca',
    500: '#4d36b2',
    950: '#000000',
  },
}
SCSS
$custom: #4d36b2;
$custom-light: #896fca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d36b2",
  "rgb": {
    "r": 77,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 251.129,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43922,
    "c": 0.18561,
    "h": 284.2
  },
  "luminance": 0.0743
}

Semantic roles & 50–950 ramp

primary
#4D36B2
secondary
#B8C57F
accent
#DD4BC2
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4D36B2

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

Preview Lab → · Contrast checker → · Palette generator →

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