#4F187B#4F187B

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

Color values

HEX#4F187B
RGBrgb(79, 24, 123)
HSLhsl(273, 67%, 29%)
HSVhsv(273, 80%, 48%)
CMYKcmyk(35.8%, 80.5%, 0%, 51.8%)
CIE-LABlab(22.81, 43.53, -45.01)
CIE-LCHlch(22.81, 62.62, 314.05°)
OKLaboklab(35.43% 0.0884 -0.1282)
OKLCHoklch(35.43% 0.156 304.6)
XYZxyz(7.1254, 3.7456, 19.0826)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F187B #447B18
analogous
#1D187B #4F187B #7B1876
triadic
#4F187B #7B4F18 #187B4F
tetradic
#4F187B #7B1D18 #447B18 #18767B
square
#4F187B #7B1D18 #447B18 #18767B
split-complementary
#4F187B #767B18 #187B1D
monochromatic
#10051A #2E0E48 #4F187B #7022AE #9036D8

Accessibility & contrast

On white

12.01
#4F187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F187B
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F187B#FFFFFF#000000##FFFFFF
##4F187B1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#463249
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f187b;
/* rgb */ color: rgb(79, 24, 123);
/* oklch */ color: oklch(35.4% 0.156 304.6);
Tailwind
colors: {
  custom: {
    50: '#855ca2',
    500: '#4f187b',
    950: '#000000',
  },
}
SCSS
$custom: #4f187b;
$custom-light: #855ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f187b",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 273.333,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35433,
    "c": 0.15577,
    "h": 304.6
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

primary
#4F187B
secondary
#71B03F
accent
#EA3E8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F187B

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

Preview Lab → · Contrast checker → · Palette generator →

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