#4F1074#4F1074

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

Color values

HEX#4F1074
RGBrgb(79, 16, 116)
HSLhsl(278, 76%, 26%)
HSVhsv(278, 86%, 45%)
CMYKcmyk(31.9%, 86.2%, 0%, 54.5%)
CIE-LABlab(21.18, 44.83, -43.18)
CIE-LCHlch(21.18, 62.25, 316.08°)
OKLaboklab(34.11% 0.097 -0.1228)
OKLCHoklch(34.11% 0.156 308.3)
XYZxyz(6.5615, 3.2939, 16.8097)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1074 #357410
analogous
#1D1074 #4F1074 #741067
triadic
#4F1074 #744F10 #10744F
tetradic
#4F1074 #741D10 #357410 #106774
square
#4F1074 #741D10 #357410 #106774
split-complementary
#4F1074 #677410 #10741D
monochromatic
#12041B #2A093E #4F1074 #7417AA #981FE0

Accessibility & contrast

On white

12.66
#4F1074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1074
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1074#FFFFFF#000000##FFFFFF
##4F10741.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003372
Tritanopia (blue-blind)
#492B44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1074;
/* rgb */ color: rgb(79, 16, 116);
/* oklch */ color: oklch(34.1% 0.156 308.3);
Tailwind
colors: {
  custom: {
    50: '#85589d',
    500: '#4f1074',
    950: '#000000',
  },
}
SCSS
$custom: #4f1074;
$custom-light: #85589d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1074",
  "rgb": {
    "r": 79,
    "g": 16,
    "b": 116
  },
  "hsl": {
    "h": 277.8,
    "s": 75.758,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34109,
    "c": 0.15649,
    "h": 308.3
  },
  "luminance": 0.03294
}

Semantic roles & 50–950 ramp

primary
#4F1074
secondary
#60AB35
accent
#F2357B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #4F1074

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

Preview Lab → · Contrast checker → · Palette generator →

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