#4F1F96#4F1F96

#4F1F96 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.178 H 294.8°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#4F1F96
RGBrgb(79, 31, 150)
HSLhsl(264, 66%, 35%)
HSVhsv(264, 79%, 59%)
CMYKcmyk(47.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(26.29, 47.46, -56.21)
CIE-LCHlch(26.29, 73.57, 310.17°)
OKLaboklab(38.61% 0.0746 -0.1612)
OKLCHoklch(38.61% 0.178 294.8)
XYZxyz(9.2180, 4.8440, 29.2976)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F96 #66961F
analogous
#1F2A96 #4F1F96 #8A1F96
triadic
#4F1F96 #964F1F #1F964F
tetradic
#4F1F96 #961F2A #66961F #1F968A
square
#4F1F96 #961F2A #66961F #1F968A
split-complementary
#4F1F96 #968A1F #2A961F
monochromatic
#1A0A31 #341563 #4F1F96 #6A29C9 #8B54DC

Accessibility & contrast

On white

10.67
#4F1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4F1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F96
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F96#FFFFFF#000000##FFFFFF
##4F1F961.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#3A405A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f1f96;
/* rgb */ color: rgb(79, 31, 150);
/* oklch */ color: oklch(38.6% 0.178 294.8);
Tailwind
colors: {
  custom: {
    50: '#8861b6',
    500: '#4f1f96',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f96;
$custom-light: #8861b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f96",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 264.202,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38612,
    "c": 0.17765,
    "h": 294.8
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#4F1F96
secondary
#93BF52
accent
#E93FA4
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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