#4D167C#4D167C

#4D167C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.158 H 303.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#4D167C
RGBrgb(77, 22, 124)
HSLhsl(272, 70%, 29%)
HSVhsv(272, 82%, 49%)
CMYKcmyk(37.9%, 82.3%, 0%, 51.4%)
CIE-LABlab(22.33, 44.23, -46.45)
CIE-LCHlch(22.33, 64.14, 313.60°)
OKLaboklab(35.06% 0.0868 -0.1325)
OKLCHoklch(35.06% 0.158 303.2)
XYZxyz(6.9847, 3.6068, 19.3931)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D167C #457C16
analogous
#1A167C #4D167C #7C1678
triadic
#4D167C #7C4D16 #167C4D
tetradic
#4D167C #7C1A16 #457C16 #16787C
square
#4D167C #7C1A16 #457C16 #16787C
split-complementary
#4D167C #787C16 #167C1A
monochromatic
#10051A #2D0D48 #4D167C #6D1FB0 #8D32DB

Accessibility & contrast

On white

12.20
#4D167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4D167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D167C
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D167C#FFFFFF#000000##FFFFFF
##4D167C1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#433249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d167c;
/* rgb */ color: rgb(77, 22, 124);
/* oklch */ color: oklch(35.1% 0.158 303.2);
Tailwind
colors: {
  custom: {
    50: '#845ba3',
    500: '#4d167c',
    950: '#000000',
  },
}
SCSS
$custom: #4d167c;
$custom-light: #845ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d167c",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 272.353,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35059,
    "c": 0.15843,
    "h": 303.2
  },
  "luminance": 0.03607
}

Semantic roles & 50–950 ramp

primary
#4D167C
secondary
#72B13D
accent
#ED3B8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D167C

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

Preview Lab → · Contrast checker → · Palette generator →

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