#4F1F7D#4F1F7D

#4F1F7D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.150 H 302.8°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#4F1F7D
RGBrgb(79, 31, 125)
HSLhsl(271, 60%, 31%)
HSVhsv(271, 75%, 49%)
CMYKcmyk(36.8%, 75.2%, 0%, 51%)
CIE-LABlab(24.07, 40.92, -44.22)
CIE-LCHlch(24.07, 60.25, 312.78°)
OKLaboklab(36.37% 0.0812 -0.126)
OKLCHoklch(36.37% 0.15 302.8)
XYZxyz(7.4152, 4.1229, 19.8032)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F7D #4D7D1F
analogous
#201F7D #4F1F7D #7D1F7C
triadic
#4F1F7D #7D4F1F #1F7D4F
tetradic
#4F1F7D #7D201F #4D7D1F #1F7C7D
square
#4F1F7D #7D201F #4D7D1F #1F7C7D
split-complementary
#4F1F7D #7C7D1F #1F7D20
monochromatic
#11071B #30134C #4F1F7D #6E2BAE #8D45D1

Accessibility & contrast

On white

11.51
#4F1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4F1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F7D
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F7D#FFFFFF#000000##FFFFFF
##4F1F7D1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#46364C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f1f7d;
/* rgb */ color: rgb(79, 31, 125);
/* oklch */ color: oklch(36.4% 0.150 302.8);
Tailwind
colors: {
  custom: {
    50: '#855fa3',
    500: '#4f1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f7d;
$custom-light: #855fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f7d",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 270.638,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36374,
    "c": 0.14987,
    "h": 302.8
  },
  "luminance": 0.04123
}

Semantic roles & 50–950 ramp

primary
#4F1F7D
secondary
#7BB048
accent
#E34492
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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