#4F158F#4F158F

#4F158F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.179 H 298.1°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4F158F
RGBrgb(79, 21, 143)
HSLhsl(269, 74%, 32%)
HSVhsv(269, 85%, 56%)
CMYKcmyk(44.8%, 85.3%, 0%, 43.9%)
CIE-LABlab(24.26, 49.60, -55.20)
CIE-LCHlch(24.26, 74.22, 311.94°)
OKLaboklab(37.01% 0.0843 -0.1582)
OKLCHoklch(37.01% 0.179 298.1)
XYZxyz(8.4492, 4.1816, 26.3432)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F158F #558F15
analogous
#15188F #4F158F #8C158F
triadic
#4F158F #8F4F15 #158F4F
tetradic
#4F158F #8F1518 #558F15 #158F8C
square
#4F158F #8F1518 #558F15 #158F8C
split-complementary
#4F158F #8F8C15 #188F15
monochromatic
#140524 #320D5A #4F158F #6C1DC4 #8B3CE2

Accessibility & contrast

On white

11.44
#4F158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4F158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F158F
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F158F#FFFFFF#000000##FFFFFF
##4F158F1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#3E3954
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f158f;
/* rgb */ color: rgb(79, 21, 143);
/* oklch */ color: oklch(37.0% 0.179 298.1);
Tailwind
colors: {
  custom: {
    50: '#885cb1',
    500: '#4f158f',
    950: '#000000',
  },
}
SCSS
$custom: #4f158f;
$custom-light: #885cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f158f",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 268.525,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37006,
    "c": 0.17921,
    "h": 298.1
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#4F158F
secondary
#83C23E
accent
#F13798
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4F158F

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

Preview Lab → · Contrast checker → · Palette generator →

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