#4F1C97#4F1C97

#4F1C97 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.182 H 295.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4F1C97
RGBrgb(79, 28, 151)
HSLhsl(265, 69%, 35%)
HSVhsv(265, 81%, 59%)
CMYKcmyk(47.7%, 81.5%, 0%, 40.8%)
CIE-LABlab(25.94, 48.99, -57.39)
CIE-LCHlch(25.94, 75.46, 310.48°)
OKLaboklab(38.4% 0.0766 -0.1646)
OKLCHoklch(38.4% 0.182 295)
XYZxyz(9.2241, 4.7269, 29.6985)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1C97 #64971C
analogous
#1C2797 #4F1C97 #8C1C97
triadic
#4F1C97 #974F1C #1C974F
tetradic
#4F1C97 #971C27 #64971C #1C978C
square
#4F1C97 #971C27 #64971C #1C978C
split-complementary
#4F1C97 #978C1C #27971C
monochromatic
#190930 #341263 #4F1C97 #6A26CB #8A4FDE

Accessibility & contrast

On white

10.79
#4F1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4F1C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1C97
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1C97#FFFFFF#000000##FFFFFF
##4F1C971.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#3A3F5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f1c97;
/* rgb */ color: rgb(79, 28, 151);
/* oklch */ color: oklch(38.4% 0.182 295.0);
Tailwind
colors: {
  custom: {
    50: '#885fb7',
    500: '#4f1c97',
    950: '#000000',
  },
}
SCSS
$custom: #4f1c97;
$custom-light: #885fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1c97",
  "rgb": {
    "r": 79,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 264.878,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38402,
    "c": 0.18158,
    "h": 295
  },
  "luminance": 0.04727
}

Semantic roles & 50–950 ramp

primary
#4F1C97
secondary
#91C14E
accent
#EC3CA3
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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