#4F1A8A#4F1A8A

#4F1A8A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.170 H 299.1°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#4F1A8A
RGBrgb(79, 26, 138)
HSLhsl(268, 68%, 32%)
HSVhsv(268, 81%, 54%)
CMYKcmyk(42.8%, 81.2%, 0%, 45.9%)
CIE-LABlab(24.44, 46.46, -51.81)
CIE-LCHlch(24.44, 69.59, 311.89°)
OKLaboklab(36.98% 0.0824 -0.1482)
OKLCHoklch(36.98% 0.17 299.1)
XYZxyz(8.1801, 4.2359, 24.4265)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1A8A #558A1A
analogous
#1A1D8A #4F1A8A #871A8A
triadic
#4F1A8A #8A4F1A #1A8A4F
tetradic
#4F1A8A #8A1A1D #558A1A #1A8A87
square
#4F1A8A #8A1A1D #558A1A #1A8A87
split-complementary
#4F1A8A #8A871A #1D8A1A
monochromatic
#140723 #321057 #4F1A8A #6C24BD #8B43DC

Accessibility & contrast

On white

11.37
#4F1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4F1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1A8A
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1A8A#FFFFFF#000000##FFFFFF
##4F1A8A1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#403952
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f1a8a;
/* rgb */ color: rgb(79, 26, 138);
/* oklch */ color: oklch(37.0% 0.170 299.1);
Tailwind
colors: {
  custom: {
    50: '#875ead',
    500: '#4f1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #4f1a8a;
$custom-light: #875ead;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1a8a",
  "rgb": {
    "r": 79,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 268.393,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36982,
    "c": 0.16957,
    "h": 299.1
  },
  "luminance": 0.04236
}

Semantic roles & 50–950 ramp

primary
#4F1A8A
secondary
#83BD43
accent
#EB3D99
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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