#4F1870#4F1870

#4F1870 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.144 H 309.1°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4F1870
RGBrgb(79, 24, 112)
HSLhsl(278, 65%, 27%)
HSVhsv(278, 79%, 44%)
CMYKcmyk(29.5%, 78.6%, 0%, 56.1%)
CIE-LABlab(21.89, 40.88, -39.45)
CIE-LCHlch(21.89, 56.81, 316.02°)
OKLaboklab(34.5% 0.091 -0.1119)
OKLCHoklch(34.5% 0.144 309.1)
XYZxyz(6.4751, 3.4855, 15.6578)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1870 #397018
analogous
#231870 #4F1870 #701865
triadic
#4F1870 #704F18 #18704F
tetradic
#4F1870 #702318 #397018 #186570
square
#4F1870 #702318 #397018 #186570
split-complementary
#4F1870 #657018 #187023
monochromatic
#120519 #2B0D3E #4F1870 #7323A2 #9630D3

Accessibility & contrast

On white

12.37
#4F1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4F1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1870
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1870#FFFFFF#000000##FFFFFF
##4F18701.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#4A2D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f1870;
/* rgb */ color: rgb(79, 24, 112);
/* oklch */ color: oklch(34.5% 0.144 309.1);
Tailwind
colors: {
  custom: {
    50: '#845b9a',
    500: '#4f1870',
    950: '#000000',
  },
}
SCSS
$custom: #4f1870;
$custom-light: #845b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1870",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 277.5,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34499,
    "c": 0.14426,
    "h": 309.1
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#4F1870
secondary
#65A53E
accent
#E8407F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1870

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

Preview Lab → · Contrast checker → · Palette generator →

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