#4F186A#4F186A

#4F186A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.0% C 0.138 H 311.9°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#4F186A
RGBrgb(79, 24, 106)
HSLhsl(280, 63%, 25%)
HSVhsv(280, 77%, 42%)
CMYKcmyk(25.5%, 77.4%, 0%, 58.4%)
CIE-LABlab(21.42, 39.47, -36.33)
CIE-LCHlch(21.42, 53.64, 317.37°)
OKLaboklab(34.01% 0.0921 -0.1027)
OKLCHoklch(34.01% 0.138 311.9)
XYZxyz(6.1521, 3.3563, 13.9566)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F186A #336A18
analogous
#26186A #4F186A #6A185C
triadic
#4F186A #6A4F18 #186A4F
tetradic
#4F186A #6A2618 #336A18 #185C6A
square
#4F186A #6A2618 #336A18 #185C6A
split-complementary
#4F186A #5C6A18 #186A26
monochromatic
#130619 #2A0D38 #4F186A #74239C #992FCE

Accessibility & contrast

On white

12.57
#4F186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4F186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F186A
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F186A#FFFFFF#000000##FFFFFF
##4F186A1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#0C3468
Tritanopia (blue-blind)
#4C2A40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f186a;
/* rgb */ color: rgb(79, 24, 106);
/* oklch */ color: oklch(34.0% 0.138 311.9);
Tailwind
colors: {
  custom: {
    50: '#845b95',
    500: '#4f186a',
    950: '#000000',
  },
}
SCSS
$custom: #4f186a;
$custom-light: #845b95;
$custom-dark: #000000;
JSON
{
  "hex": "#4f186a",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 280.244,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34014,
    "c": 0.138,
    "h": 311.9
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#4F186A
secondary
#5EA03E
accent
#E64278
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F186A

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

Preview Lab → · Contrast checker → · Palette generator →

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