#4F157C#4F157C

#4F157C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.160 H 304.6°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#4F157C
RGBrgb(79, 21, 124)
HSLhsl(274, 71%, 28%)
HSVhsv(274, 83%, 49%)
CMYKcmyk(36.3%, 83.1%, 0%, 51.4%)
CIE-LABlab(22.49, 44.96, -46.16)
CIE-LCHlch(22.49, 64.44, 314.24°)
OKLaboklab(35.24% 0.0907 -0.1316)
OKLCHoklch(35.24% 0.16 304.6)
XYZxyz(7.1299, 3.6539, 19.3945)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F157C #427C15
analogous
#1B157C #4F157C #7C1575
triadic
#4F157C #7C4F15 #157C4F
tetradic
#4F157C #7C1B15 #427C15 #15757C
square
#4F157C #7C1B15 #427C15 #15757C
split-complementary
#4F157C #757C15 #157C1B
monochromatic
#11041A #2E0C48 #4F157C #701EB0 #9130DC

Accessibility & contrast

On white

12.13
#4F157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4F157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F157C
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F157C#FFFFFF#000000##FFFFFF
##4F157C1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#463149
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f157c;
/* rgb */ color: rgb(79, 21, 124);
/* oklch */ color: oklch(35.2% 0.160 304.6);
Tailwind
colors: {
  custom: {
    50: '#855ba3',
    500: '#4f157c',
    950: '#000000',
  },
}
SCSS
$custom: #4f157c;
$custom-light: #855ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f157c",
  "rgb": {
    "r": 79,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 273.786,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35237,
    "c": 0.15984,
    "h": 304.6
  },
  "luminance": 0.03654
}

Semantic roles & 50–950 ramp

primary
#4F157C
secondary
#6FB13C
accent
#EE3A89
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F157C

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

Preview Lab → · Contrast checker → · Palette generator →

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