#4F1D8B#4F1D8B

#4F1D8B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.168 H 298.3°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#4F1D8B
RGBrgb(79, 29, 139)
HSLhsl(267, 65%, 33%)
HSVhsv(267, 79%, 55%)
CMYKcmyk(43.2%, 79.1%, 0%, 45.5%)
CIE-LABlab(24.97, 45.45, -51.56)
CIE-LCHlch(24.97, 68.73, 311.39°)
OKLaboklab(37.38% 0.0796 -0.1475)
OKLCHoklch(37.38% 0.168 298.3)
XYZxyz(8.3228, 4.4049, 24.8328)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1D8B #598B1D
analogous
#1D228B #4F1D8B #861D8B
triadic
#4F1D8B #8B4F1D #1D8B4F
tetradic
#4F1D8B #8B1D22 #598B1D #1D8B86
square
#4F1D8B #8B1D22 #598B1D #1D8B86
split-complementary
#4F1D8B #8B861D #228B1D
monochromatic
#150826 #321258 #4F1D8B #6C28BE #8B49D9

Accessibility & contrast

On white

11.16
#4F1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4F1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1D8B
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1D8B#FFFFFF#000000##FFFFFF
##4F1D8B1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#403B53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f1d8b;
/* rgb */ color: rgb(79, 29, 139);
/* oklch */ color: oklch(37.4% 0.168 298.3);
Tailwind
colors: {
  custom: {
    50: '#875fae',
    500: '#4f1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #4f1d8b;
$custom-light: #875fae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1d8b",
  "rgb": {
    "r": 79,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 267.273,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3738,
    "c": 0.16762,
    "h": 298.3
  },
  "luminance": 0.04405
}

Semantic roles & 50–950 ramp

primary
#4F1D8B
secondary
#87BB49
accent
#E83F9C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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