#4F0F5A#4F0F5A

#4F0F5A is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.9% C 0.133 H 321.2°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#4F0F5A
RGBrgb(79, 15, 90)
HSLhsl(291, 71%, 21%)
HSVhsv(291, 83%, 35%)
CMYKcmyk(12.2%, 83.3%, 0%, 64.7%)
CIE-LABlab(18.98, 39.52, -29.69)
CIE-LCHlch(18.98, 49.44, 323.08°)
OKLaboklab(31.91% 0.1035 -0.0832)
OKLCHoklch(31.91% 0.133 321.2)
XYZxyz(5.2405, 2.7424, 9.9242)
Luminance0.0274 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F0F5A #1A5A0F
analogous
#290F5A #4F0F5A #5A0F3F
triadic
#4F0F5A #5A4F0F #0F5A4F
tetradic
#4F0F5A #5A290F #1A5A0F #0F3F5A
square
#4F0F5A #5A290F #1A5A0F #0F3F5A
split-complementary
#4F0F5A #3F5A0F #0F5A29
monochromatic
#17041A #210626 #4F0F5A #7D188E #AB20C3

Accessibility & contrast

On white

13.56
#4F0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4F0F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F0F5A
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F0F5A#FFFFFF#000000##FFFFFF
##4F0F5A1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#193058
Tritanopia (blue-blind)
#501F34
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4f0f5a;
/* rgb */ color: rgb(79, 15, 90);
/* oklch */ color: oklch(31.9% 0.133 321.2);
Tailwind
colors: {
  custom: {
    50: '#835689',
    500: '#4f0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #4f0f5a;
$custom-light: #835689;
$custom-dark: #000000;
JSON
{
  "hex": "#4f0f5a",
  "rgb": {
    "r": 79,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 291.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31908,
    "c": 0.13282,
    "h": 321.2
  },
  "luminance": 0.02742
}

Semantic roles & 50–950 ramp

primary
#4F0F5A
secondary
#409431
accent
#EE3A54
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4F0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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