#4F188A#4F188A

#4F188A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.171 H 299.3°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4F188A
RGBrgb(79, 24, 138)
HSLhsl(269, 70%, 32%)
HSVhsv(269, 83%, 54%)
CMYKcmyk(42.8%, 82.6%, 0%, 45.9%)
CIE-LABlab(24.16, 47.26, -52.26)
CIE-LCHlch(24.16, 70.45, 312.12°)
OKLaboklab(36.79% 0.0839 -0.1495)
OKLCHoklch(36.79% 0.171 299.3)
XYZxyz(8.1374, 4.1504, 24.4122)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F188A #538A18
analogous
#181A8A #4F188A #88188A
triadic
#4F188A #8A4F18 #188A4F
tetradic
#4F188A #8A181A #538A18 #188A88
square
#4F188A #8A181A #538A18 #188A88
split-complementary
#4F188A #8A8818 #1A8A18
monochromatic
#130622 #310F56 #4F188A #6D21BE #8B3FDE

Accessibility & contrast

On white

11.47
#4F188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4F188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F188A
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F188A#FFFFFF#000000##FFFFFF
##4F188A1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#403852
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f188a;
/* rgb */ color: rgb(79, 24, 138);
/* oklch */ color: oklch(36.8% 0.171 299.3);
Tailwind
colors: {
  custom: {
    50: '#875dad',
    500: '#4f188a',
    950: '#000000',
  },
}
SCSS
$custom: #4f188a;
$custom-light: #875dad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f188a",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 268.947,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36791,
    "c": 0.17147,
    "h": 299.3
  },
  "luminance": 0.04151
}

Semantic roles & 50–950 ramp

primary
#4F188A
secondary
#81BD40
accent
#ED3B97
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4F188A

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

Preview Lab → · Contrast checker → · Palette generator →

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