#4F1885#4F1885

#4F1885 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.166 H 301.0°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#4F1885
RGBrgb(79, 24, 133)
HSLhsl(270, 69%, 31%)
HSVhsv(270, 82%, 52%)
CMYKcmyk(40.6%, 82%, 0%, 47.8%)
CIE-LABlab(23.70, 46.01, -49.88)
CIE-LCHlch(23.70, 67.86, 312.69°)
OKLaboklab(36.33% 0.0855 -0.1426)
OKLCHoklch(36.33% 0.166 301)
XYZxyz(7.7837, 4.0089, 22.5495)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1885 #4E8518
analogous
#181885 #4F1885 #851884
triadic
#4F1885 #854F18 #18854F
tetradic
#4F1885 #851818 #4E8518 #188485
square
#4F1885 #851818 #4E8518 #188485
split-complementary
#4F1885 #848518 #188518
monochromatic
#11051D #300F51 #4F1885 #6E21B9 #8C3CDC

Accessibility & contrast

On white

11.66
#4F1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4F1885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1885
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1885#FFFFFF#000000##FFFFFF
##4F18851.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003883
Tritanopia (blue-blind)
#43364F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f1885;
/* rgb */ color: rgb(79, 24, 133);
/* oklch */ color: oklch(36.3% 0.166 301.0);
Tailwind
colors: {
  custom: {
    50: '#865ca9',
    500: '#4f1885',
    950: '#000000',
  },
}
SCSS
$custom: #4f1885;
$custom-light: #865ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1885",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 270.275,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36329,
    "c": 0.16624,
    "h": 301
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#4F1885
secondary
#7CB940
accent
#EC3C93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4F1885

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

Preview Lab → · Contrast checker → · Palette generator →

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