#4F1A7E#4F1A7E

#4F1A7E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.157 H 303.2°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#4F1A7E
RGBrgb(79, 26, 126)
HSLhsl(272, 66%, 30%)
HSVhsv(272, 79%, 49%)
CMYKcmyk(37.3%, 79.4%, 0%, 50.6%)
CIE-LABlab(23.36, 43.44, -46.01)
CIE-LCHlch(23.36, 63.28, 313.35°)
OKLaboklab(35.9% 0.0858 -0.1312)
OKLCHoklch(35.9% 0.157 303.2)
XYZxyz(7.3589, 3.9074, 20.1011)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1A7E #497E1A
analogous
#1D1A7E #4F1A7E #7E1A7B
triadic
#4F1A7E #7E4F1A #1A7E4F
tetradic
#4F1A7E #7E1D1A #497E1A #1A7B7E
square
#4F1A7E #7E1D1A #497E1A #1A7B7E
split-complementary
#4F1A7E #7B7E1A #1A7E1D
monochromatic
#100519 #2F104B #4F1A7E #6F24B1 #8E3CD7

Accessibility & contrast

On white

11.79
#4F1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1A7E
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1A7E#FFFFFF#000000##FFFFFF
##4F1A7E1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#45344B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1a7e;
/* rgb */ color: rgb(79, 26, 126);
/* oklch */ color: oklch(35.9% 0.157 303.2);
Tailwind
colors: {
  custom: {
    50: '#855da4',
    500: '#4f1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #4f1a7e;
$custom-light: #855da4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1a7e",
  "rgb": {
    "r": 79,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 271.8,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.359,
    "c": 0.15679,
    "h": 303.2
  },
  "luminance": 0.03907
}

Semantic roles & 50–950 ramp

primary
#4F1A7E
secondary
#77B242
accent
#E93F8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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