#4F1A8E#4F1A8E

#4F1A8E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.174 H 297.8°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4F1A8E
RGBrgb(79, 26, 142)
HSLhsl(267, 69%, 33%)
HSVhsv(267, 82%, 56%)
CMYKcmyk(44.4%, 81.7%, 0%, 44.3%)
CIE-LABlab(24.81, 47.48, -53.69)
CIE-LCHlch(24.81, 71.67, 311.49°)
OKLaboklab(37.35% 0.0811 -0.1537)
OKLCHoklch(37.35% 0.174 297.8)
XYZxyz(8.4751, 4.3539, 25.9798)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1A8E #598E1A
analogous
#1A1F8E #4F1A8E #891A8E
triadic
#4F1A8E #8E4F1A #1A8E4F
tetradic
#4F1A8E #8E1A1F #598E1A #1A8E89
square
#4F1A8E #8E1A1F #598E1A #1A8E89
split-complementary
#4F1A8E #8E891A #1F8E1A
monochromatic
#150727 #32115A #4F1A8E #6C23C2 #8B45DD

Accessibility & contrast

On white

11.23
#4F1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4F1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1A8E
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1A8E#FFFFFF#000000##FFFFFF
##4F1A8E1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#3F3B54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f1a8e;
/* rgb */ color: rgb(79, 26, 142);
/* oklch */ color: oklch(37.4% 0.174 297.8);
Tailwind
colors: {
  custom: {
    50: '#875eb0',
    500: '#4f1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #4f1a8e;
$custom-light: #875eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1a8e",
  "rgb": {
    "r": 79,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 267.414,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37354,
    "c": 0.17382,
    "h": 297.8
  },
  "luminance": 0.04354
}

Semantic roles & 50–950 ramp

primary
#4F1A8E
secondary
#87BE45
accent
#EC3C9B
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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