#4F1570#4F1570

#4F1570 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.148 H 309.5°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#4F1570
RGBrgb(79, 21, 112)
HSLhsl(278, 68%, 26%)
HSVhsv(278, 81%, 44%)
CMYKcmyk(29.5%, 81.2%, 0%, 56.1%)
CIE-LABlab(21.46, 42.11, -40.15)
CIE-LCHlch(21.46, 58.18, 316.37°)
OKLaboklab(34.2% 0.0939 -0.1139)
OKLCHoklch(34.2% 0.148 309.5)
XYZxyz(6.4167, 3.3686, 15.6383)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1570 #367015
analogous
#211570 #4F1570 #701563
triadic
#4F1570 #704F15 #15704F
tetradic
#4F1570 #702115 #367015 #156370
square
#4F1570 #702115 #367015 #156370
split-complementary
#4F1570 #637015 #157021
monochromatic
#12051A #2B0B3C #4F1570 #731FA4 #9829D7

Accessibility & contrast

On white

12.55
#4F1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4F1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1570
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1570#FFFFFF#000000##FFFFFF
##4F15701.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#4A2C42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1570;
/* rgb */ color: rgb(79, 21, 112);
/* oklch */ color: oklch(34.2% 0.148 309.5);
Tailwind
colors: {
  custom: {
    50: '#845a9a',
    500: '#4f1570',
    950: '#000000',
  },
}
SCSS
$custom: #4f1570;
$custom-light: #845a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1570",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 278.242,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34197,
    "c": 0.14765,
    "h": 309.5
  },
  "luminance": 0.03368
}

Semantic roles & 50–950 ramp

primary
#4F1570
secondary
#62A63B
accent
#EB3D7C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1570

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

Preview Lab → · Contrast checker → · Palette generator →

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