#4F185E#4F185E

#4F185E is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.126 H 318.2°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#4F185E
RGBrgb(79, 24, 94)
HSLhsl(287, 59%, 23%)
HSVhsv(287, 74%, 37%)
CMYKcmyk(16%, 74.5%, 0%, 63.1%)
CIE-LABlab(20.53, 36.75, -29.87)
CIE-LCHlch(20.53, 47.36, 320.90°)
OKLaboklab(33.1% 0.0936 -0.0838)
OKLCHoklch(33.1% 0.126 318.2)
XYZxyz(5.5712, 3.1239, 10.8970)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F185E #275E18
analogous
#2C185E #4F185E #5E184A
triadic
#4F185E #5E4F18 #185E4F
tetradic
#4F185E #5E2C18 #275E18 #184A5E
square
#4F185E #5E2C18 #275E18 #184A5E
split-complementary
#4F185E #4A5E18 #185E2C
monochromatic
#140618 #260C2D #4F185E #78248F #A131C0

Accessibility & contrast

On white

12.92
#4F185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F185E
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F185E#FFFFFF#000000##FFFFFF
##4F185E1.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#1B335C
Tritanopia (blue-blind)
#4F2539
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4f185e;
/* rgb */ color: rgb(79, 24, 94);
/* oklch */ color: oklch(33.1% 0.126 318.2);
Tailwind
colors: {
  custom: {
    50: '#835a8c',
    500: '#4f185e',
    950: '#000000',
  },
}
SCSS
$custom: #4f185e;
$custom-light: #835a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f185e",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 287.143,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33103,
    "c": 0.1256,
    "h": 318.2
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#4F185E
secondary
#50943D
accent
#E34567
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4F185E

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

Preview Lab → · Contrast checker → · Palette generator →

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