#4F1273#4F1273

#4F1273 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.154 H 308.5°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#4F1273
RGBrgb(79, 18, 115)
HSLhsl(278, 73%, 26%)
HSVhsv(278, 84%, 45%)
CMYKcmyk(31.3%, 84.3%, 0%, 54.9%)
CIE-LABlab(21.33, 43.93, -42.30)
CIE-LCHlch(21.33, 60.98, 316.08°)
OKLaboklab(34.18% 0.0957 -0.1202)
OKLCHoklch(34.18% 0.154 308.5)
XYZxyz(6.5346, 3.3328, 16.5154)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1273 #367312
analogous
#1E1273 #4F1273 #731266
triadic
#4F1273 #734F12 #12734F
tetradic
#4F1273 #731E12 #367312 #126673
square
#4F1273 #731E12 #367312 #126673
split-complementary
#4F1273 #667312 #12731E
monochromatic
#12041A #2B0A3E #4F1273 #731AA8 #9823DD

Accessibility & contrast

On white

12.60
#4F1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1273
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1273#FFFFFF#000000##FFFFFF
##4F12731.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#492C43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1273;
/* rgb */ color: rgb(79, 18, 115);
/* oklch */ color: oklch(34.2% 0.154 308.5);
Tailwind
colors: {
  custom: {
    50: '#85599c',
    500: '#4f1273',
    950: '#000000',
  },
}
SCSS
$custom: #4f1273;
$custom-light: #85599c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1273",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 277.732,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34183,
    "c": 0.15369,
    "h": 308.5
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#4F1273
secondary
#62AA37
accent
#F0387C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1273

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

Preview Lab → · Contrast checker → · Palette generator →

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