#4F1272#4F1272

#4F1272 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.153 H 309.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#4F1272
RGBrgb(79, 18, 114)
HSLhsl(278, 73%, 26%)
HSVhsv(278, 84%, 45%)
CMYKcmyk(30.7%, 84.2%, 0%, 55.3%)
CIE-LABlab(21.24, 43.70, -41.79)
CIE-LCHlch(21.24, 60.46, 316.27°)
OKLaboklab(34.1% 0.096 -0.1188)
OKLCHoklch(34.1% 0.153 309)
XYZxyz(6.4774, 3.3099, 16.2140)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1272 #357212
analogous
#1F1272 #4F1272 #721265
triadic
#4F1272 #724F12 #12724F
tetradic
#4F1272 #721F12 #357212 #126572
square
#4F1272 #721F12 #357212 #126572
split-complementary
#4F1272 #657212 #12721F
monochromatic
#12041A #2A0A3D #4F1272 #741AA7 #9823DC

Accessibility & contrast

On white

12.64
#4F1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4F1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1272
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1272#FFFFFF#000000##FFFFFF
##4F12721.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#4A2B43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1272;
/* rgb */ color: rgb(79, 18, 114);
/* oklch */ color: oklch(34.1% 0.153 309.0);
Tailwind
colors: {
  custom: {
    50: '#85599b',
    500: '#4f1272',
    950: '#000000',
  },
}
SCSS
$custom: #4f1272;
$custom-light: #85599b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1272",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 278.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34097,
    "c": 0.15271,
    "h": 309
  },
  "luminance": 0.0331
}

Semantic roles & 50–950 ramp

primary
#4F1272
secondary
#60A937
accent
#EF387B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1272

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

Preview Lab → · Contrast checker → · Palette generator →

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