#4F185C#4F185C

#4F185C is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.124 H 319.3°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#4F185C
RGBrgb(79, 24, 92)
HSLhsl(289, 59%, 23%)
HSVhsv(289, 74%, 36%)
CMYKcmyk(14.1%, 73.9%, 0%, 63.9%)
CIE-LABlab(20.39, 36.32, -28.76)
CIE-LCHlch(20.39, 46.33, 321.62°)
OKLaboklab(32.96% 0.0937 -0.0806)
OKLCHoklch(32.96% 0.124 319.3)
XYZxyz(5.4826, 3.0885, 10.4305)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F185C #255C18
analogous
#2D185C #4F185C #5C1847
triadic
#4F185C #5C4F18 #185C4F
tetradic
#4F185C #5C2D18 #255C18 #18475C
square
#4F185C #5C2D18 #255C18 #18475C
split-complementary
#4F185C #475C18 #185C2D
monochromatic
#150618 #250B2B #4F185C #79258D #A231BD

Accessibility & contrast

On white

12.98
#4F185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4F185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F185C
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F185C#FFFFFF#000000##FFFFFF
##4F185C1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#1D335A
Tritanopia (blue-blind)
#4F2538
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4f185c;
/* rgb */ color: rgb(79, 24, 92);
/* oklch */ color: oklch(33.0% 0.124 319.3);
Tailwind
colors: {
  custom: {
    50: '#835a8a',
    500: '#4f185c',
    950: '#000000',
  },
}
SCSS
$custom: #4f185c;
$custom-light: #835a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f185c",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 288.529,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32959,
    "c": 0.12357,
    "h": 319.3
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#4F185C
secondary
#4E933D
accent
#E24664
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4F185C

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

Preview Lab → · Contrast checker → · Palette generator →

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