#4D18B4#4D18B4

#4D18B4 is a dark, highly saturated violet. Relative luminance 0.055; OKLCH L 40.8% C 0.215 H 287.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#4D18B4
RGBrgb(77, 24, 180)
HSLhsl(260, 76%, 40%)
HSVhsv(260, 87%, 71%)
CMYKcmyk(57.2%, 86.7%, 0%, 29.4%)
CIE-LABlab(28.18, 57.73, -71.27)
CIE-LCHlch(28.18, 91.72, 309.01°)
OKLaboklab(40.78% 0.065 -0.2052)
OKLCHoklch(40.78% 0.215 287.6)
XYZxyz(11.6230, 5.5257, 43.6253)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D18B4 #7FB418
analogous
#1831B4 #4D18B4 #9B18B4
triadic
#4D18B4 #B44D18 #18B44D
tetradic
#4D18B4 #B41831 #7FB418 #18B49B
square
#4D18B4 #B41831 #7FB418 #18B49B
split-complementary
#4D18B4 #B49B18 #31B418
monochromatic
#1F0A48 #36117E #4D18B4 #6727E2 #8D5DE9

Accessibility & contrast

On white

9.98
#4D18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4D18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D18B4
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D18B4#FFFFFF#000000##FFFFFF
##4D18B41.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#1B4B6A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4d18b4;
/* rgb */ color: rgb(77, 24, 180);
/* oklch */ color: oklch(40.8% 0.215 287.6);
Tailwind
colors: {
  custom: {
    50: '#8c60cc',
    500: '#4d18b4',
    950: '#000000',
  },
}
SCSS
$custom: #4d18b4;
$custom-light: #8c60cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d18b4",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 260.385,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.40776,
    "c": 0.21522,
    "h": 287.6
  },
  "luminance": 0.05526
}

Semantic roles & 50–950 ramp

primary
#4D18B4
secondary
#A6CD5B
accent
#F335B2
background
#F9F5FC
surface
#F2EAF9
border
#CCC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4D18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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