#4F187C#4F187C

#4F187C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.157 H 304.2°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#4F187C
RGBrgb(79, 24, 124)
HSLhsl(273, 68%, 29%)
HSVhsv(273, 81%, 49%)
CMYKcmyk(36.3%, 80.6%, 0%, 51.4%)
CIE-LABlab(22.90, 43.78, -45.50)
CIE-LCHlch(22.90, 63.14, 313.89°)
OKLaboklab(35.52% 0.0881 -0.1297)
OKLCHoklch(35.52% 0.157 304.2)
XYZxyz(7.1883, 3.7708, 19.4140)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F187C #457C18
analogous
#1D187C #4F187C #7C1877
triadic
#4F187C #7C4F18 #187C4F
tetradic
#4F187C #7C1D18 #457C18 #18777C
square
#4F187C #7C1D18 #457C18 #18777C
split-complementary
#4F187C #777C18 #187C1D
monochromatic
#10051A #2E0E49 #4F187C #7022AF #8F36D8

Accessibility & contrast

On white

11.97
#4F187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4F187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F187C
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F187C#FFFFFF#000000##FFFFFF
##4F187C1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#46324A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f187c;
/* rgb */ color: rgb(79, 24, 124);
/* oklch */ color: oklch(35.5% 0.157 304.2);
Tailwind
colors: {
  custom: {
    50: '#855ca3',
    500: '#4f187c',
    950: '#000000',
  },
}
SCSS
$custom: #4f187c;
$custom-light: #855ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f187c",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 273,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35521,
    "c": 0.15681,
    "h": 304.2
  },
  "luminance": 0.03771
}

Semantic roles & 50–950 ramp

primary
#4F187C
secondary
#72B13F
accent
#EA3D8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F187C

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

Preview Lab → · Contrast checker → · Palette generator →

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