#4D18A0#4D18A0

#4D18A0 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.194 H 292.0°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#4D18A0
RGBrgb(77, 24, 160)
HSLhsl(263, 74%, 36%)
HSVhsv(263, 85%, 63%)
CMYKcmyk(51.9%, 85%, 0%, 37.3%)
CIE-LABlab(26.07, 52.59, -62.70)
CIE-LCHlch(26.07, 81.84, 309.99°)
OKLaboklab(38.7% 0.0728 -0.1802)
OKLCHoklch(38.7% 0.194 292)
XYZxyz(9.7306, 4.7687, 33.6586)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D18A0 #6BA018
analogous
#1827A0 #4D18A0 #9118A0
triadic
#4D18A0 #A04D18 #18A04D
tetradic
#4D18A0 #A01827 #6BA018 #18A091
square
#4D18A0 #A01827 #6BA018 #18A091
split-complementary
#4D18A0 #A09118 #27A018
monochromatic
#1A0836 #33106B #4D18A0 #6720D5 #894EE4

Accessibility & contrast

On white

10.75
#4D18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4D18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D18A0
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D18A0#FFFFFF#000000##FFFFFF
##4D18A01.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#30425F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d18a0;
/* rgb */ color: rgb(77, 24, 160);
/* oklch */ color: oklch(38.7% 0.194 292.0);
Tailwind
colors: {
  custom: {
    50: '#895ebd',
    500: '#4d18a0',
    950: '#000000',
  },
}
SCSS
$custom: #4d18a0;
$custom-light: #895ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d18a0",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 263.382,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38701,
    "c": 0.19436,
    "h": 292
  },
  "luminance": 0.04769
}

Semantic roles & 50–950 ramp

primary
#4D18A0
secondary
#97C64D
accent
#F137A8
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0D0512
muted
#7D7981

Preview Lab

Preview with #4D18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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