#4F1F8E#4F1F8E

#4F1F8E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.169 H 297.1°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#4F1F8E
RGBrgb(79, 31, 142)
HSLhsl(266, 64%, 34%)
HSVhsv(266, 78%, 56%)
CMYKcmyk(44.4%, 78.2%, 0%, 44.3%)
CIE-LABlab(25.55, 45.34, -52.48)
CIE-LCHlch(25.55, 69.35, 310.83°)
OKLaboklab(37.87% 0.077 -0.1502)
OKLCHoklch(37.87% 0.169 297.1)
XYZxyz(8.5956, 4.5951, 26.0200)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F8E #5E8E1F
analogous
#1F278E #4F1F8E #871F8E
triadic
#4F1F8E #8E4F1F #1F8E4F
tetradic
#4F1F8E #8E1F27 #5E8E1F #1F8E87
square
#4F1F8E #8E1F27 #5E8E1F #1F8E87
split-complementary
#4F1F8E #8E871F #278E1F
monochromatic
#17092A #33145C #4F1F8E #6B2AC0 #8A4FD9

Accessibility & contrast

On white

10.94
#4F1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4F1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F8E
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F8E#FFFFFF#000000##FFFFFF
##4F1F8E1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#3E3D56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f1f8e;
/* rgb */ color: rgb(79, 31, 142);
/* oklch */ color: oklch(37.9% 0.169 297.1);
Tailwind
colors: {
  custom: {
    50: '#8760b0',
    500: '#4f1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f8e;
$custom-light: #8760b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f8e",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 265.946,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3787,
    "c": 0.16882,
    "h": 297.1
  },
  "luminance": 0.04595
}

Semantic roles & 50–950 ramp

primary
#4F1F8E
secondary
#8CBB4D
accent
#E7419F
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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