#4F187A#4F187A

#4F187A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.155 H 305.0°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#4F187A
RGBrgb(79, 24, 122)
HSLhsl(274, 67%, 29%)
HSVhsv(274, 80%, 48%)
CMYKcmyk(35.2%, 80.3%, 0%, 52.2%)
CIE-LABlab(22.73, 43.29, -44.51)
CIE-LCHlch(22.73, 62.09, 314.20°)
OKLaboklab(35.35% 0.0887 -0.1268)
OKLCHoklch(35.35% 0.155 305)
XYZxyz(7.0631, 3.7207, 18.7546)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F187A #437A18
analogous
#1E187A #4F187A #7A1874
triadic
#4F187A #7A4F18 #187A4F
tetradic
#4F187A #7A1E18 #437A18 #18747A
square
#4F187A #7A1E18 #437A18 #18747A
split-complementary
#4F187A #747A18 #187A1E
monochromatic
#11051A #2E0E47 #4F187A #7022AD #9035D7

Accessibility & contrast

On white

12.04
#4F187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4F187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F187A
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F187A#FFFFFF#000000##FFFFFF
##4F187A1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#473149
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f187a;
/* rgb */ color: rgb(79, 24, 122);
/* oklch */ color: oklch(35.3% 0.155 305.0);
Tailwind
colors: {
  custom: {
    50: '#855ca1',
    500: '#4f187a',
    950: '#000000',
  },
}
SCSS
$custom: #4f187a;
$custom-light: #855ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f187a",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 273.673,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35346,
    "c": 0.15473,
    "h": 305
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#4F187A
secondary
#70AF3F
accent
#EA3E89
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F187A

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

Preview Lab → · Contrast checker → · Palette generator →

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