#4F1B8B#4F1B8B

#4F1B8B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.170 H 298.6°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#4F1B8B
RGBrgb(79, 27, 139)
HSLhsl(268, 67%, 33%)
HSVhsv(268, 81%, 55%)
CMYKcmyk(43.2%, 80.6%, 0%, 45.5%)
CIE-LABlab(24.67, 46.30, -52.05)
CIE-LCHlch(24.67, 69.66, 311.66°)
OKLaboklab(37.17% 0.0812 -0.1489)
OKLCHoklch(37.17% 0.17 298.6)
XYZxyz(8.2754, 4.3101, 24.8170)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1B8B #578B1B
analogous
#1B1F8B #4F1B8B #871B8B
triadic
#4F1B8B #8B4F1B #1B8B4F
tetradic
#4F1B8B #8B1B1F #578B1B #1B8B87
square
#4F1B8B #8B1B1F #578B1B #1B8B87
split-complementary
#4F1B8B #8B871B #1F8B1B
monochromatic
#150725 #321158 #4F1B8B #6C25BE #8B45DB

Accessibility & contrast

On white

11.28
#4F1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1B8B
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1B8B#FFFFFF#000000##FFFFFF
##4F1B8B1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#403A53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f1b8b;
/* rgb */ color: rgb(79, 27, 139);
/* oklch */ color: oklch(37.2% 0.170 298.6);
Tailwind
colors: {
  custom: {
    50: '#875eae',
    500: '#4f1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #4f1b8b;
$custom-light: #875eae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1b8b",
  "rgb": {
    "r": 79,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 267.857,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37173,
    "c": 0.16966,
    "h": 298.6
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#4F1B8B
secondary
#85BC45
accent
#EA3D9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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