#4F1F89#4F1F89

#4F1F89 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.163 H 298.7°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#4F1F89
RGBrgb(79, 31, 137)
HSLhsl(267, 63%, 33%)
HSVhsv(267, 77%, 54%)
CMYKcmyk(42.3%, 77.4%, 0%, 46.3%)
CIE-LABlab(25.10, 44.03, -50.09)
CIE-LCHlch(25.10, 66.69, 311.31°)
OKLaboklab(37.42% 0.0783 -0.1432)
OKLCHoklch(37.42% 0.163 298.7)
XYZxyz(8.2286, 4.4483, 24.0871)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F89 #59891F
analogous
#1F2489 #4F1F89 #841F89
triadic
#4F1F89 #894F1F #1F894F
tetradic
#4F1F89 #891F24 #59891F #1F8984
square
#4F1F89 #891F24 #59891F #1F8984
split-complementary
#4F1F89 #89841F #24891F
monochromatic
#150825 #321457 #4F1F89 #6C2ABB #8B4CD6

Accessibility & contrast

On white

11.11
#4F1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4F1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F89
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F89#FFFFFF#000000##FFFFFF
##4F1F891.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#413B53
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f1f89;
/* rgb */ color: rgb(79, 31, 137);
/* oklch */ color: oklch(37.4% 0.163 298.7);
Tailwind
colors: {
  custom: {
    50: '#8660ac',
    500: '#4f1f89',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f89;
$custom-light: #8660ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f89",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 267.17,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37419,
    "c": 0.16327,
    "h": 298.7
  },
  "luminance": 0.04448
}

Semantic roles & 50–950 ramp

primary
#4F1F89
secondary
#87B94B
accent
#E6429C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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