#4D187E#4D187E

#4D187E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.159 H 302.2°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#4D187E
RGBrgb(77, 24, 126)
HSLhsl(271, 68%, 29%)
HSVhsv(271, 81%, 49%)
CMYKcmyk(38.9%, 81%, 0%, 50.6%)
CIE-LABlab(22.78, 43.92, -46.97)
CIE-LCHlch(22.78, 64.31, 313.08°)
OKLaboklab(35.43% 0.0845 -0.1341)
OKLCHoklch(35.43% 0.159 302.2)
XYZxyz(7.1522, 3.7374, 20.0792)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D187E #497E18
analogous
#1A187E #4D187E #7E187C
triadic
#4D187E #7E4D18 #187E4D
tetradic
#4D187E #7E1A18 #497E18 #187C7E
square
#4D187E #7E1A18 #497E18 #187C7E
split-complementary
#4D187E #7C7E18 #187E1A
monochromatic
#10051A #2E0E4B #4D187E #6C22B1 #8B37D9

Accessibility & contrast

On white

12.02
#4D187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4D187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D187E
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D187E#FFFFFF#000000##FFFFFF
##4D187E1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#42334B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d187e;
/* rgb */ color: rgb(77, 24, 126);
/* oklch */ color: oklch(35.4% 0.159 302.2);
Tailwind
colors: {
  custom: {
    50: '#845ca4',
    500: '#4d187e',
    950: '#000000',
  },
}
SCSS
$custom: #4d187e;
$custom-light: #845ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d187e",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 271.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35433,
    "c": 0.1585,
    "h": 302.2
  },
  "luminance": 0.03737
}

Semantic roles & 50–950 ramp

primary
#4D187E
secondary
#77B23F
accent
#EB3D90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D187E

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

Preview Lab → · Contrast checker → · Palette generator →

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