#4F1B7B#4F1B7B

#4F1B7B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.152 H 304.2°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#4F1B7B
RGBrgb(79, 27, 123)
HSLhsl(273, 64%, 29%)
HSVhsv(273, 78%, 48%)
CMYKcmyk(35.8%, 78%, 0%, 51.8%)
CIE-LABlab(23.26, 42.25, -44.28)
CIE-LCHlch(23.26, 61.21, 313.66°)
OKLaboklab(35.75% 0.0856 -0.1261)
OKLCHoklch(35.75% 0.152 304.2)
XYZxyz(7.1907, 3.8762, 19.1044)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1B7B #477B1B
analogous
#1F1B7B #4F1B7B #7B1B77
triadic
#4F1B7B #7B4F1B #1B7B4F
tetradic
#4F1B7B #7B1F1B #477B1B #1B777B
square
#4F1B7B #7B1F1B #477B1B #1B777B
split-complementary
#4F1B7B #777B1B #1B7B1F
monochromatic
#100619 #2F1049 #4F1B7B #6F26AD #8F3CD4

Accessibility & contrast

On white

11.83
#4F1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4F1B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1B7B
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1B7B#FFFFFF#000000##FFFFFF
##4F1B7B1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#46334A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f1b7b;
/* rgb */ color: rgb(79, 27, 123);
/* oklch */ color: oklch(35.7% 0.152 304.2);
Tailwind
colors: {
  custom: {
    50: '#855da2',
    500: '#4f1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #4f1b7b;
$custom-light: #855da2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1b7b",
  "rgb": {
    "r": 79,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 272.5,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35746,
    "c": 0.15245,
    "h": 304.2
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#4F1B7B
secondary
#74AF43
accent
#E7418D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4F1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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