#4F1E8E#4F1E8E

#4F1E8E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.170 H 297.3°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#4F1E8E
RGBrgb(79, 30, 142)
HSLhsl(266, 65%, 34%)
HSVhsv(266, 79%, 56%)
CMYKcmyk(44.4%, 78.9%, 0%, 44.3%)
CIE-LABlab(25.39, 45.79, -52.73)
CIE-LCHlch(25.39, 69.84, 310.97°)
OKLaboklab(37.76% 0.0779 -0.151)
OKLCHoklch(37.76% 0.17 297.3)
XYZxyz(8.5699, 4.5436, 26.0114)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1E8E #5D8E1E
analogous
#1E258E #4F1E8E #871E8E
triadic
#4F1E8E #8E4F1E #1E8E4F
tetradic
#4F1E8E #8E1E25 #5D8E1E #1E8E87
square
#4F1E8E #8E1E25 #5D8E1E #1E8E87
split-complementary
#4F1E8E #8E871E #258E1E
monochromatic
#170929 #33135B #4F1E8E #6B29C1 #8A4DD9

Accessibility & contrast

On white

11.00
#4F1E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4F1E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1E8E
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1E8E#FFFFFF#000000##FFFFFF
##4F1E8E1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#3E3C55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f1e8e;
/* rgb */ color: rgb(79, 30, 142);
/* oklch */ color: oklch(37.8% 0.170 297.3);
Tailwind
colors: {
  custom: {
    50: '#8760b0',
    500: '#4f1e8e',
    950: '#000000',
  },
}
SCSS
$custom: #4f1e8e;
$custom-light: #8760b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1e8e",
  "rgb": {
    "r": 79,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 266.25,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37762,
    "c": 0.16987,
    "h": 297.3
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#4F1E8E
secondary
#8BBC4C
accent
#E8409E
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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