#4F1A7A#4F1A7A

#4F1A7A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.153 H 304.7°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#4F1A7A
RGBrgb(79, 26, 122)
HSLhsl(273, 65%, 29%)
HSVhsv(273, 79%, 48%)
CMYKcmyk(35.2%, 78.7%, 0%, 52.2%)
CIE-LABlab(23.02, 42.44, -44.03)
CIE-LCHlch(23.02, 61.16, 313.95°)
OKLaboklab(35.55% 0.0868 -0.1254)
OKLCHoklch(35.55% 0.153 304.7)
XYZxyz(7.1059, 3.8062, 18.7689)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1A7A #457A1A
analogous
#1F1A7A #4F1A7A #7A1A75
triadic
#4F1A7A #7A4F1A #1A7A4F
tetradic
#4F1A7A #7A1F1A #457A1A #1A757A
square
#4F1A7A #7A1F1A #457A1A #1A757A
split-complementary
#4F1A7A #757A1A #1A7A1F
monochromatic
#100519 #2E0F48 #4F1A7A #7025AC #8F39D5

Accessibility & contrast

On white

11.92
#4F1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4F1A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1A7A
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1A7A#FFFFFF#000000##FFFFFF
##4F1A7A1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#473249
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f1a7a;
/* rgb */ color: rgb(79, 26, 122);
/* oklch */ color: oklch(35.6% 0.153 304.7);
Tailwind
colors: {
  custom: {
    50: '#855da1',
    500: '#4f1a7a',
    950: '#000000',
  },
}
SCSS
$custom: #4f1a7a;
$custom-light: #855da1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1a7a",
  "rgb": {
    "r": 79,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 273.125,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35553,
    "c": 0.15251,
    "h": 304.7
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#4F1A7A
secondary
#72AE41
accent
#E8408B
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4F1A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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