#4F1B97#4F1B97

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

Color values

HEX#4F1B97
RGBrgb(79, 27, 151)
HSLhsl(265, 70%, 35%)
HSVhsv(265, 82%, 59%)
CMYKcmyk(47.7%, 82.1%, 0%, 40.8%)
CIE-LABlab(25.80, 49.39, -57.62)
CIE-LCHlch(25.80, 75.89, 310.60°)
OKLaboklab(38.31% 0.0774 -0.1653)
OKLCHoklch(38.31% 0.182 295.1)
XYZxyz(9.2008, 4.6802, 29.6908)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1B97 #63971B
analogous
#1B2597 #4F1B97 #8D1B97
triadic
#4F1B97 #974F1B #1B974F
tetradic
#4F1B97 #971B25 #63971B #1B978D
square
#4F1B97 #971B25 #63971B #1B978D
split-complementary
#4F1B97 #978D1B #25971B
monochromatic
#19082F #341263 #4F1B97 #6A24CB #8A4DDF

Accessibility & contrast

On white

10.85
#4F1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4F1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1B97
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1B97#FFFFFF#000000##FFFFFF
##4F1B971.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.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: #4f1b97;
/* rgb */ color: rgb(79, 27, 151);
/* oklch */ color: oklch(38.3% 0.182 295.1);
Tailwind
colors: {
  custom: {
    50: '#885fb7',
    500: '#4f1b97',
    950: '#000000',
  },
}
SCSS
$custom: #4f1b97;
$custom-light: #885fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1b97",
  "rgb": {
    "r": 79,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 265.161,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38306,
    "c": 0.18248,
    "h": 295.1
  },
  "luminance": 0.0468
}

Semantic roles & 50–950 ramp

primary
#4F1B97
secondary
#90C14C
accent
#EC3BA2
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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