#4F1A7F#4F1A7F

#4F1A7F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.158 H 302.8°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#4F1A7F
RGBrgb(79, 26, 127)
HSLhsl(271, 66%, 30%)
HSVhsv(271, 80%, 50%)
CMYKcmyk(37.8%, 79.5%, 0%, 50.2%)
CIE-LABlab(23.45, 43.69, -46.51)
CIE-LCHlch(23.45, 63.81, 313.21°)
OKLaboklab(35.99% 0.0855 -0.1327)
OKLCHoklch(35.99% 0.158 302.8)
XYZxyz(7.4237, 3.9333, 20.4427)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1A7F #4A7F1A
analogous
#1C1A7F #4F1A7F #7F1A7D
triadic
#4F1A7F #7F4F1A #1A7F4F
tetradic
#4F1A7F #7F1C1A #4A7F1A #1A7D7F
square
#4F1A7F #7F1C1A #4A7F1A #1A7D7F
split-complementary
#4F1A7F #7D7F1A #1A7F1C
monochromatic
#100519 #2F104C #4F1A7F #6F24B2 #8E3CD7

Accessibility & contrast

On white

11.75
#4F1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4F1A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1A7F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1A7F#FFFFFF#000000##FFFFFF
##4F1A7F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#45344C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1a7f;
/* rgb */ color: rgb(79, 26, 127);
/* oklch */ color: oklch(36.0% 0.158 302.8);
Tailwind
colors: {
  custom: {
    50: '#855da5',
    500: '#4f1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #4f1a7f;
$custom-light: #855da5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1a7f",
  "rgb": {
    "r": 79,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 271.485,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.35988,
    "c": 0.15785,
    "h": 302.8
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#4F1A7F
secondary
#78B342
accent
#E93F90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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