#4F1270#4F1270

#4F1270 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.151 H 309.8°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#4F1270
RGBrgb(79, 18, 112)
HSLhsl(279, 72%, 25%)
HSVhsv(279, 84%, 44%)
CMYKcmyk(29.5%, 83.9%, 0%, 56.1%)
CIE-LABlab(21.07, 43.24, -40.78)
CIE-LCHlch(21.07, 59.43, 316.68°)
OKLaboklab(33.92% 0.0965 -0.1158)
OKLCHoklch(33.92% 0.151 309.8)
XYZxyz(6.3648, 3.2649, 15.6210)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1270 #337012
analogous
#201270 #4F1270 #701262
triadic
#4F1270 #704F12 #12704F
tetradic
#4F1270 #702012 #337012 #126270
square
#4F1270 #702012 #337012 #126270
split-complementary
#4F1270 #627012 #127020
monochromatic
#13041A #2A0A3B #4F1270 #741AA5 #9923D9

Accessibility & contrast

On white

12.70
#4F1270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4F1270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1270
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1270#FFFFFF#000000##FFFFFF
##4F12701.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#4A2A42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1270;
/* rgb */ color: rgb(79, 18, 112);
/* oklch */ color: oklch(33.9% 0.151 309.8);
Tailwind
colors: {
  custom: {
    50: '#85599a',
    500: '#4f1270',
    950: '#000000',
  },
}
SCSS
$custom: #4f1270;
$custom-light: #85599a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1270",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 278.936,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33925,
    "c": 0.15073,
    "h": 309.8
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#4F1270
secondary
#5EA737
accent
#EF3979
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1270

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

Preview Lab → · Contrast checker → · Palette generator →

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