#4F1A7C#4F1A7C

#4F1A7C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.155 H 303.9°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#4F1A7C
RGBrgb(79, 26, 124)
HSLhsl(272, 65%, 29%)
HSVhsv(272, 79%, 49%)
CMYKcmyk(36.3%, 79%, 0%, 51.4%)
CIE-LABlab(23.19, 42.94, -45.03)
CIE-LCHlch(23.19, 62.22, 313.64°)
OKLaboklab(35.73% 0.0863 -0.1283)
OKLCHoklch(35.73% 0.155 303.9)
XYZxyz(7.2311, 3.8563, 19.4283)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1A7C #477C1A
analogous
#1E1A7C #4F1A7C #7C1A78
triadic
#4F1A7C #7C4F1A #1A7C4F
tetradic
#4F1A7C #7C1E1A #477C1A #1A787C
square
#4F1A7C #7C1E1A #477C1A #1A787C
split-complementary
#4F1A7C #787C1A #1A7C1E
monochromatic
#100519 #2F0F49 #4F1A7C #6F25AF #8F3BD6

Accessibility & contrast

On white

11.86
#4F1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4F1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1A7C
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1A7C#FFFFFF#000000##FFFFFF
##4F1A7C1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#46334A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f1a7c;
/* rgb */ color: rgb(79, 26, 124);
/* oklch */ color: oklch(35.7% 0.155 303.9);
Tailwind
colors: {
  custom: {
    50: '#855da3',
    500: '#4f1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #4f1a7c;
$custom-light: #855da3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1a7c",
  "rgb": {
    "r": 79,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 272.449,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35726,
    "c": 0.15465,
    "h": 303.9
  },
  "luminance": 0.03856
}

Semantic roles & 50–950 ramp

primary
#4F1A7C
secondary
#74B042
accent
#E8408D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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