#4F158D#4F158D

#4F158D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.177 H 298.7°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#4F158D
RGBrgb(79, 21, 141)
HSLhsl(269, 74%, 32%)
HSVhsv(269, 85%, 55%)
CMYKcmyk(44%, 85.1%, 0%, 44.7%)
CIE-LABlab(24.07, 49.11, -54.28)
CIE-LCHlch(24.07, 73.20, 312.14°)
OKLaboklab(36.81% 0.085 -0.1554)
OKLCHoklch(36.81% 0.177 298.7)
XYZxyz(8.2991, 4.1216, 25.5524)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F158D #538D15
analogous
#15178D #4F158D #8B158D
triadic
#4F158D #8D4F15 #158D4F
tetradic
#4F158D #8D1517 #538D15 #158D8B
square
#4F158D #8D1517 #538D15 #158D8B
split-complementary
#4F158D #8D8B15 #178D15
monochromatic
#130522 #310D58 #4F158D #6D1DC2 #8B3BE2

Accessibility & contrast

On white

11.51
#4F158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4F158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F158D
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F158D#FFFFFF#000000##FFFFFF
##4F158D1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#3F3853
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f158d;
/* rgb */ color: rgb(79, 21, 141);
/* oklch */ color: oklch(36.8% 0.177 298.7);
Tailwind
colors: {
  custom: {
    50: '#875caf',
    500: '#4f158d',
    950: '#000000',
  },
}
SCSS
$custom: #4f158d;
$custom-light: #875caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f158d",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 269,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36814,
    "c": 0.17718,
    "h": 298.7
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#4F158D
secondary
#81C13D
accent
#F13797
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4F158D

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

Preview Lab → · Contrast checker → · Palette generator →

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