#4F187D#4F187D

#4F187D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.158 H 303.8°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#4F187D
RGBrgb(79, 24, 125)
HSLhsl(273, 68%, 29%)
HSVhsv(273, 81%, 49%)
CMYKcmyk(36.8%, 80.8%, 0%, 51%)
CIE-LABlab(22.99, 44.02, -45.99)
CIE-LCHlch(22.99, 63.67, 313.75°)
OKLaboklab(35.61% 0.0879 -0.1311)
OKLCHoklch(35.61% 0.158 303.8)
XYZxyz(7.2519, 3.7962, 19.7488)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F187D #467D18
analogous
#1D187D #4F187D #7D1879
triadic
#4F187D #7D4F18 #187D4F
tetradic
#4F187D #7D1D18 #467D18 #18797D
square
#4F187D #7D1D18 #467D18 #18797D
split-complementary
#4F187D #797D18 #187D1D
monochromatic
#10051A #2F0E4A #4F187D #6F22B0 #8F37D9

Accessibility & contrast

On white

11.94
#4F187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4F187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F187D
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F187D#FFFFFF#000000##FFFFFF
##4F187D1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#46334A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f187d;
/* rgb */ color: rgb(79, 24, 125);
/* oklch */ color: oklch(35.6% 0.158 303.8);
Tailwind
colors: {
  custom: {
    50: '#855ca3',
    500: '#4f187d',
    950: '#000000',
  },
}
SCSS
$custom: #4f187d;
$custom-light: #855ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f187d",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 272.673,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35609,
    "c": 0.15787,
    "h": 303.8
  },
  "luminance": 0.03796
}

Semantic roles & 50–950 ramp

primary
#4F187D
secondary
#73B23F
accent
#EB3D8C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F187D

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

Preview Lab → · Contrast checker → · Palette generator →

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