#4D168F#4D168F

#4D168F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.178 H 296.8°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#4D168F
RGBrgb(77, 22, 143)
HSLhsl(267, 73%, 32%)
HSVhsv(267, 85%, 56%)
CMYKcmyk(46.2%, 84.6%, 0%, 43.9%)
CIE-LABlab(24.11, 48.97, -55.46)
CIE-LCHlch(24.11, 73.99, 311.44°)
OKLaboklab(36.84% 0.0804 -0.159)
OKLCHoklch(36.84% 0.178 296.8)
XYZxyz(8.3041, 4.1346, 26.3418)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D168F #588F16
analogous
#161B8F #4D168F #8A168F
triadic
#4D168F #8F4D16 #168F4D
tetradic
#4D168F #8F161B #588F16 #168F8A
square
#4D168F #8F161B #588F16 #168F8A
split-complementary
#4D168F #8F8A16 #1B8F16
monochromatic
#140625 #300E5A #4D168F #6A1EC4 #883EE1

Accessibility & contrast

On white

11.49
#4D168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4D168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D168F
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D168F#FFFFFF#000000##FFFFFF
##4D168F1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#3B3A54
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d168f;
/* rgb */ color: rgb(77, 22, 143);
/* oklch */ color: oklch(36.8% 0.178 296.8);
Tailwind
colors: {
  custom: {
    50: '#865cb1',
    500: '#4d168f',
    950: '#000000',
  },
}
SCSS
$custom: #4d168f;
$custom-light: #865cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d168f",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 267.273,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36842,
    "c": 0.17819,
    "h": 296.8
  },
  "luminance": 0.04135
}

Semantic roles & 50–950 ramp

primary
#4D168F
secondary
#86C13F
accent
#F0389C
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4D168F

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

Preview Lab → · Contrast checker → · Palette generator →

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