#4F1F7F#4F1F7F

#4F1F7F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.152 H 302.1°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#4F1F7F
RGBrgb(79, 31, 127)
HSLhsl(270, 61%, 31%)
HSVhsv(270, 76%, 50%)
CMYKcmyk(37.8%, 75.6%, 0%, 50.2%)
CIE-LABlab(24.24, 41.43, -45.22)
CIE-LCHlch(24.24, 61.33, 312.50°)
OKLaboklab(36.54% 0.0807 -0.1289)
OKLCHoklch(36.54% 0.152 302.1)
XYZxyz(7.5443, 4.1745, 20.4829)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F7F #4F7F1F
analogous
#1F1F7F #4F1F7F #7F1F7F
triadic
#4F1F7F #7F4F1F #1F7F4F
tetradic
#4F1F7F #7F1F1F #4F7F1F #1F7F7F
square
#4F1F7F #7F1F1F #4F7F1F #1F7F7F
split-complementary
#4F1F7F #7F7F1F #1F7F1F
monochromatic
#12071D #30134E #4F1F7F #6E2BB0 #8C46D2

Accessibility & contrast

On white

11.44
#4F1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4F1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F7F
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F7F#FFFFFF#000000##FFFFFF
##4F1F7F1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#45374D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f1f7f;
/* rgb */ color: rgb(79, 31, 127);
/* oklch */ color: oklch(36.5% 0.152 302.1);
Tailwind
colors: {
  custom: {
    50: '#8560a5',
    500: '#4f1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f7f;
$custom-light: #8560a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f7f",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 270,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36544,
    "c": 0.15212,
    "h": 302.1
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#4F1F7F
secondary
#7DB248
accent
#E44494
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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