#4F1B87#4F1B87

#4F1B87 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.165 H 299.9°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#4F1B87
RGBrgb(79, 27, 135)
HSLhsl(269, 67%, 32%)
HSVhsv(269, 80%, 53%)
CMYKcmyk(41.5%, 80%, 0%, 47.1%)
CIE-LABlab(24.31, 45.28, -50.14)
CIE-LCHlch(24.31, 67.56, 312.08°)
OKLaboklab(36.81% 0.0824 -0.1433)
OKLCHoklch(36.81% 0.165 299.9)
XYZxyz(7.9885, 4.1953, 23.3059)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1B87 #53871B
analogous
#1B1D87 #4F1B87 #851B87
triadic
#4F1B87 #874F1B #1B874F
tetradic
#4F1B87 #871B1D #53871B #1B8785
square
#4F1B87 #871B1D #53871B #1B8785
split-complementary
#4F1B87 #87851B #1D871B
monochromatic
#130721 #311154 #4F1B87 #6D25BA #8B43D9

Accessibility & contrast

On white

11.42
#4F1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1B87
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1B87#FFFFFF#000000##FFFFFF
##4F1B871.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#423851
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f1b87;
/* rgb */ color: rgb(79, 27, 135);
/* oklch */ color: oklch(36.8% 0.165 299.9);
Tailwind
colors: {
  custom: {
    50: '#865eab',
    500: '#4f1b87',
    950: '#000000',
  },
}
SCSS
$custom: #4f1b87;
$custom-light: #865eab;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1b87",
  "rgb": {
    "r": 79,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 268.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36807,
    "c": 0.16536,
    "h": 299.9
  },
  "luminance": 0.04195
}

Semantic roles & 50–950 ramp

primary
#4F1B87
secondary
#81BA44
accent
#EA3E97
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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