#4F1F8B#4F1F8B

#4F1F8B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.165 H 298.0°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#4F1F8B
RGBrgb(79, 31, 139)
HSLhsl(267, 64%, 33%)
HSVhsv(267, 78%, 55%)
CMYKcmyk(43.2%, 77.7%, 0%, 45.5%)
CIE-LABlab(25.28, 44.55, -51.05)
CIE-LCHlch(25.28, 67.76, 311.11°)
OKLaboklab(37.6% 0.0778 -0.1461)
OKLCHoklch(37.6% 0.165 298)
XYZxyz(8.3734, 4.5062, 24.8497)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F8B #5B8B1F
analogous
#1F258B #4F1F8B #851F8B
triadic
#4F1F8B #8B4F1F #1F8B4F
tetradic
#4F1F8B #8B1F25 #5B8B1F #1F8B85
square
#4F1F8B #8B1F25 #5B8B1F #1F8B85
split-complementary
#4F1F8B #8B851F #258B1F
monochromatic
#160927 #331459 #4F1F8B #6B2ABD #8B4DD7

Accessibility & contrast

On white

11.05
#4F1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4F1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F8B
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F8B#FFFFFF#000000##FFFFFF
##4F1F8B1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#403C54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f1f8b;
/* rgb */ color: rgb(79, 31, 139);
/* oklch */ color: oklch(37.6% 0.165 298.0);
Tailwind
colors: {
  custom: {
    50: '#8760ae',
    500: '#4f1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f8b;
$custom-light: #8760ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f8b",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 266.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37598,
    "c": 0.16549,
    "h": 298
  },
  "luminance": 0.04506
}

Semantic roles & 50–950 ramp

primary
#4F1F8B
secondary
#89BA4C
accent
#E7419D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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