#4F1F9D#4F1F9D

#4F1F9D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.185 H 293.0°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4F1F9D
RGBrgb(79, 31, 157)
HSLhsl(263, 67%, 37%)
HSVhsv(263, 80%, 62%)
CMYKcmyk(49.7%, 80.3%, 0%, 38.4%)
CIE-LABlab(26.95, 49.31, -59.41)
CIE-LCHlch(26.95, 77.21, 309.70°)
OKLaboklab(39.28% 0.0725 -0.1706)
OKLCHoklch(39.28% 0.185 293)
XYZxyz(9.7985, 5.0762, 32.3553)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F9D #6D9D1F
analogous
#1F2E9D #4F1F9D #8E1F9D
triadic
#4F1F9D #9D4F1F #1F9D4F
tetradic
#4F1F9D #9D1F2E #6D9D1F #1F9D8E
square
#4F1F9D #9D1F2E #6D9D1F #1F9D8E
split-complementary
#4F1F9D #9D8E1F #2E9D1F
monochromatic
#1C0B37 #35156A #4F1F9D #6929D0 #8B58DE

Accessibility & contrast

On white

10.42
#4F1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4F1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F9D
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F9D#FFFFFF#000000##FFFFFF
##4F1F9D1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#36435E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f1f9d;
/* rgb */ color: rgb(79, 31, 157);
/* oklch */ color: oklch(39.3% 0.185 293.0);
Tailwind
colors: {
  custom: {
    50: '#8961bb',
    500: '#4f1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f9d;
$custom-light: #8961bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f9d",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 262.857,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39277,
    "c": 0.18531,
    "h": 293
  },
  "luminance": 0.05077
}

Semantic roles & 50–950 ramp

primary
#4F1F9D
secondary
#99C256
accent
#EA3EA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4F1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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