#4F2074#4F2074

#4F2074 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.138 H 306.2°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#4F2074
RGBrgb(79, 32, 116)
HSLhsl(274, 57%, 29%)
HSVhsv(274, 72%, 45%)
CMYKcmyk(31.9%, 72.4%, 0%, 54.5%)
CIE-LABlab(23.53, 38.13, -39.38)
CIE-LCHlch(23.53, 54.82, 314.08°)
OKLaboklab(35.76% 0.0817 -0.1117)
OKLCHoklch(35.76% 0.138 306.2)
XYZxyz(6.8927, 3.9563, 16.9201)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2074 #457420
analogous
#252074 #4F2074 #74206F
triadic
#4F2074 #744F20 #20744F
tetradic
#4F2074 #742520 #457420 #206F74
square
#4F2074 #742520 #457420 #206F74
split-complementary
#4F2074 #6F7420 #207425
monochromatic
#100718 #2E1344 #4F2074 #702DA4 #8F43CB

Accessibility & contrast

On white

11.72
#4F2074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4F2074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2074
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2074#FFFFFF#000000##FFFFFF
##4F20741.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#043872
Tritanopia (blue-blind)
#493347
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f2074;
/* rgb */ color: rgb(79, 32, 116);
/* oklch */ color: oklch(35.8% 0.138 306.2);
Tailwind
colors: {
  custom: {
    50: '#84609d',
    500: '#4f2074',
    950: '#000000',
  },
}
SCSS
$custom: #4f2074;
$custom-light: #84609d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2074",
  "rgb": {
    "r": 79,
    "g": 32,
    "b": 116
  },
  "hsl": {
    "h": 273.571,
    "s": 56.757,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35759,
    "c": 0.13841,
    "h": 306.2
  },
  "luminance": 0.03956
}

Semantic roles & 50–950 ramp

primary
#4F2074
secondary
#72A848
accent
#E0488B
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4F2074

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

Preview Lab → · Contrast checker → · Palette generator →

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