#4F1B8A#4F1B8A

#4F1B8A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.169 H 298.9°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#4F1B8A
RGBrgb(79, 27, 138)
HSLhsl(268, 67%, 32%)
HSVhsv(268, 80%, 54%)
CMYKcmyk(42.8%, 80.4%, 0%, 45.9%)
CIE-LABlab(24.58, 46.05, -51.57)
CIE-LCHlch(24.58, 69.14, 311.76°)
OKLaboklab(37.08% 0.0815 -0.1475)
OKLCHoklch(37.08% 0.169 298.9)
XYZxyz(8.2027, 4.2810, 24.4340)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1B8A #568A1B
analogous
#1B1F8A #4F1B8A #871B8A
triadic
#4F1B8A #8A4F1B #1B8A4F
tetradic
#4F1B8A #8A1B1F #568A1B #1B8A87
square
#4F1B8A #8A1B1F #568A1B #1B8A87
split-complementary
#4F1B8A #8A871B #1F8A1B
monochromatic
#140724 #321157 #4F1B8A #6C25BD #8B45DB

Accessibility & contrast

On white

11.31
#4F1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4F1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1B8A
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1B8A#FFFFFF#000000##FFFFFF
##4F1B8A1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#403952
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f1b8a;
/* rgb */ color: rgb(79, 27, 138);
/* oklch */ color: oklch(37.1% 0.169 298.9);
Tailwind
colors: {
  custom: {
    50: '#875ead',
    500: '#4f1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #4f1b8a;
$custom-light: #875ead;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1b8a",
  "rgb": {
    "r": 79,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 268.108,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37081,
    "c": 0.16858,
    "h": 298.9
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#4F1B8A
secondary
#84BC45
accent
#EA3E99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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