#4D168D#4D168D

#4D168D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.176 H 297.4°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4D168D
RGBrgb(77, 22, 141)
HSLhsl(268, 73%, 32%)
HSVhsv(268, 84%, 55%)
CMYKcmyk(45.4%, 84.4%, 0%, 44.7%)
CIE-LABlab(23.92, 48.47, -54.54)
CIE-LCHlch(23.92, 72.96, 311.63°)
OKLaboklab(36.65% 0.0812 -0.1563)
OKLCHoklch(36.65% 0.176 297.4)
XYZxyz(8.1539, 4.0745, 25.5510)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D168D #568D16
analogous
#161B8D #4D168D #89168D
triadic
#4D168D #8D4D16 #168D4D
tetradic
#4D168D #8D161B #568D16 #168D89
square
#4D168D #8D161B #568D16 #168D89
split-complementary
#4D168D #8D8916 #1B8D16
monochromatic
#130523 #300E58 #4D168D #6A1EC2 #883DE1

Accessibility & contrast

On white

11.57
#4D168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D168D
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D168D#FFFFFF#000000##FFFFFF
##4D168D1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#3C3953
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d168d;
/* rgb */ color: rgb(77, 22, 141);
/* oklch */ color: oklch(36.6% 0.176 297.4);
Tailwind
colors: {
  custom: {
    50: '#865caf',
    500: '#4d168d',
    950: '#000000',
  },
}
SCSS
$custom: #4d168d;
$custom-light: #865caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d168d",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 267.731,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36648,
    "c": 0.1761,
    "h": 297.4
  },
  "luminance": 0.04075
}

Semantic roles & 50–950 ramp

primary
#4D168D
secondary
#84C13E
accent
#F0389B
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4D168D

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

Preview Lab → · Contrast checker → · Palette generator →

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