#4F1D88#4F1D88

#4F1D88 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.164 H 299.3°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#4F1D88
RGBrgb(79, 29, 136)
HSLhsl(268, 65%, 32%)
HSVhsv(268, 79%, 53%)
CMYKcmyk(41.9%, 78.7%, 0%, 46.7%)
CIE-LABlab(24.70, 44.67, -50.13)
CIE-LCHlch(24.70, 67.14, 311.70°)
OKLaboklab(37.11% 0.0804 -0.1433)
OKLCHoklch(37.11% 0.164 299.3)
XYZxyz(8.1066, 4.3185, 23.6942)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1D88 #56881D
analogous
#1D2188 #4F1D88 #841D88
triadic
#4F1D88 #884F1D #1D884F
tetradic
#4F1D88 #881D21 #56881D #1D8884
square
#4F1D88 #881D21 #56881D #1D8884
split-complementary
#4F1D88 #88841D #21881D
monochromatic
#140723 #321256 #4F1D88 #6C28BA #8B48D8

Accessibility & contrast

On white

11.27
#4F1D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4F1D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1D88
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1D88#FFFFFF#000000##FFFFFF
##4F1D881.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#413A52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f1d88;
/* rgb */ color: rgb(79, 29, 136);
/* oklch */ color: oklch(37.1% 0.164 299.3);
Tailwind
colors: {
  custom: {
    50: '#865fac',
    500: '#4f1d88',
    950: '#000000',
  },
}
SCSS
$custom: #4f1d88;
$custom-light: #865fac;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1d88",
  "rgb": {
    "r": 79,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 268.037,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37108,
    "c": 0.16434,
    "h": 299.3
  },
  "luminance": 0.04319
}

Semantic roles & 50–950 ramp

primary
#4F1D88
secondary
#84BA47
accent
#E84099
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1D88

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

Preview Lab → · Contrast checker → · Palette generator →

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