#4F1E8B#4F1E8B

#4F1E8B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.167 H 298.2°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#4F1E8B
RGBrgb(79, 30, 139)
HSLhsl(267, 64%, 33%)
HSVhsv(267, 78%, 55%)
CMYKcmyk(43.2%, 78.4%, 0%, 45.5%)
CIE-LABlab(25.12, 45.01, -51.31)
CIE-LCHlch(25.12, 68.25, 311.25°)
OKLaboklab(37.49% 0.0787 -0.1468)
OKLCHoklch(37.49% 0.167 298.2)
XYZxyz(8.3477, 4.4548, 24.8411)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1E8B #5A8B1E
analogous
#1E248B #4F1E8B #851E8B
triadic
#4F1E8B #8B4F1E #1E8B4F
tetradic
#4F1E8B #8B1E24 #5A8B1E #1E8B85
square
#4F1E8B #8B1E24 #5A8B1E #1E8B85
split-complementary
#4F1E8B #8B851E #248B1E
monochromatic
#160826 #321359 #4F1E8B #6C29BD #8B4BD8

Accessibility & contrast

On white

11.11
#4F1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4F1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1E8B
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1E8B#FFFFFF#000000##FFFFFF
##4F1E8B1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#403B54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f1e8b;
/* rgb */ color: rgb(79, 30, 139);
/* oklch */ color: oklch(37.5% 0.167 298.2);
Tailwind
colors: {
  custom: {
    50: '#8760ae',
    500: '#4f1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #4f1e8b;
$custom-light: #8760ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1e8b",
  "rgb": {
    "r": 79,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 266.972,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37488,
    "c": 0.16657,
    "h": 298.2
  },
  "luminance": 0.04455
}

Semantic roles & 50–950 ramp

primary
#4F1E8B
secondary
#88BB4A
accent
#E7409C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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