#4F1F8F#4F1F8F

#4F1F8F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.170 H 296.8°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#4F1F8F
RGBrgb(79, 31, 143)
HSLhsl(266, 64%, 34%)
HSVhsv(266, 78%, 56%)
CMYKcmyk(44.8%, 78.3%, 0%, 43.9%)
CIE-LABlab(25.64, 45.61, -52.95)
CIE-LCHlch(25.64, 69.88, 310.74°)
OKLaboklab(37.96% 0.0767 -0.1516)
OKLCHoklch(37.96% 0.17 296.8)
XYZxyz(8.6711, 4.6252, 26.4172)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F8F #5F8F1F
analogous
#1F278F #4F1F8F #871F8F
triadic
#4F1F8F #8F4F1F #1F8F4F
tetradic
#4F1F8F #8F1F27 #5F8F1F #1F8F87
square
#4F1F8F #8F1F27 #5F8F1F #1F8F87
split-complementary
#4F1F8F #8F871F #278F1F
monochromatic
#17092A #33145D #4F1F8F #6B2AC1 #8A4FD9

Accessibility & contrast

On white

10.91
#4F1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4F1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F8F
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F8F#FFFFFF#000000##FFFFFF
##4F1F8F1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1f8f;
/* rgb */ color: rgb(79, 31, 143);
/* oklch */ color: oklch(38.0% 0.170 296.8);
Tailwind
colors: {
  custom: {
    50: '#8760b1',
    500: '#4f1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f8f;
$custom-light: #8760b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f8f",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 265.714,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37962,
    "c": 0.16992,
    "h": 296.8
  },
  "luminance": 0.04625
}

Semantic roles & 50–950 ramp

primary
#4F1F8F
secondary
#8DBC4E
accent
#E740A0
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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