#4F148E#4F148E

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

Color values

HEX#4F148E
RGBrgb(79, 20, 142)
HSLhsl(269, 75%, 32%)
HSVhsv(269, 86%, 56%)
CMYKcmyk(44.4%, 85.9%, 0%, 44.3%)
CIE-LABlab(24.05, 49.70, -54.93)
CIE-LCHlch(24.05, 74.08, 312.13°)
OKLaboklab(36.83% 0.0853 -0.1573)
OKLCHoklch(36.83% 0.179 298.5)
XYZxyz(8.3558, 4.1154, 25.9401)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F148E #538E14
analogous
#14168E #4F148E #8C148E
triadic
#4F148E #8E4F14 #148E4F
tetradic
#4F148E #8E1416 #538E14 #148E8C
square
#4F148E #8E1416 #538E14 #148E8C
split-complementary
#4F148E #8E8C14 #168E14
monochromatic
#130523 #310C58 #4F148E #6D1CC4 #8B39E3

Accessibility & contrast

On white

11.52
#4F148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F148E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F148E#FFFFFF#000000##FFFFFF
##4F148E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#3F3953
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f148e;
/* rgb */ color: rgb(79, 20, 142);
/* oklch */ color: oklch(36.8% 0.179 298.5);
Tailwind
colors: {
  custom: {
    50: '#885bb0',
    500: '#4f148e',
    950: '#000000',
  },
}
SCSS
$custom: #4f148e;
$custom-light: #885bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f148e",
  "rgb": {
    "r": 79,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 269.016,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36829,
    "c": 0.17899,
    "h": 298.5
  },
  "luminance": 0.04116
}

Semantic roles & 50–950 ramp

primary
#4F148E
secondary
#81C23C
accent
#F23697
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4F148E

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

Preview Lab → · Contrast checker → · Palette generator →

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