#4F188F#4F188F

#4F188F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.177 H 297.7°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#4F188F
RGBrgb(79, 24, 143)
HSLhsl(268, 71%, 33%)
HSVhsv(268, 83%, 56%)
CMYKcmyk(44.8%, 83.2%, 0%, 43.9%)
CIE-LABlab(24.63, 48.51, -54.59)
CIE-LCHlch(24.63, 73.03, 311.63°)
OKLaboklab(37.26% 0.0822 -0.1564)
OKLCHoklch(37.26% 0.177 297.7)
XYZxyz(8.5077, 4.2985, 26.3627)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F188F #588F18
analogous
#181D8F #4F188F #8A188F
triadic
#4F188F #8F4F18 #188F4F
tetradic
#4F188F #8F181D #588F18 #188F8A
square
#4F188F #8F181D #588F18 #188F8A
split-complementary
#4F188F #8F8A18 #1D8F18
monochromatic
#150626 #320F5B #4F188F #6C21C3 #8B42DF

Accessibility & contrast

On white

11.29
#4F188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4F188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F188F
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F188F#FFFFFF#000000##FFFFFF
##4F188F1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#3E3A55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f188f;
/* rgb */ color: rgb(79, 24, 143);
/* oklch */ color: oklch(37.3% 0.177 297.7);
Tailwind
colors: {
  custom: {
    50: '#875db1',
    500: '#4f188f',
    950: '#000000',
  },
}
SCSS
$custom: #4f188f;
$custom-light: #875db1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f188f",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 267.731,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37263,
    "c": 0.1767,
    "h": 297.7
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#4F188F
secondary
#86C043
accent
#EE3A9B
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F188F

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

Preview Lab → · Contrast checker → · Palette generator →

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