#4D168B#4D168B

#4D168B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.174 H 298.1°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#4D168B
RGBrgb(77, 22, 139)
HSLhsl(268, 73%, 32%)
HSVhsv(268, 84%, 55%)
CMYKcmyk(44.6%, 84.2%, 0%, 45.5%)
CIE-LABlab(23.72, 47.96, -53.61)
CIE-LCHlch(23.72, 71.94, 311.82°)
OKLaboklab(36.46% 0.0819 -0.1536)
OKLCHoklch(36.46% 0.174 298.1)
XYZxyz(8.0065, 4.0155, 24.7743)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D168B #548B16
analogous
#161A8B #4D168B #88168B
triadic
#4D168B #8B4D16 #168B4D
tetradic
#4D168B #8B161A #548B16 #168B88
square
#4D168B #8B161A #548B16 #168B88
split-complementary
#4D168B #8B8816 #1A8B16
monochromatic
#120521 #300E56 #4D168B #6A1EC0 #893BE0

Accessibility & contrast

On white

11.65
#4D168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D168B
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D168B#FFFFFF#000000##FFFFFF
##4D168B1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#3D3852
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d168b;
/* rgb */ color: rgb(77, 22, 139);
/* oklch */ color: oklch(36.5% 0.174 298.1);
Tailwind
colors: {
  custom: {
    50: '#865cae',
    500: '#4d168b',
    950: '#000000',
  },
}
SCSS
$custom: #4d168b;
$custom-light: #865cae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d168b",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 268.205,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36456,
    "c": 0.17403,
    "h": 298.1
  },
  "luminance": 0.04016
}

Semantic roles & 50–950 ramp

primary
#4D168B
secondary
#82BF3E
accent
#EF3899
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D168B

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

Preview Lab → · Contrast checker → · Palette generator →

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