#4F187F#4F187F

#4F187F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.160 H 303.1°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#4F187F
RGBrgb(79, 24, 127)
HSLhsl(272, 68%, 30%)
HSVhsv(272, 81%, 50%)
CMYKcmyk(37.8%, 81.1%, 0%, 50.2%)
CIE-LABlab(23.16, 44.52, -46.98)
CIE-LCHlch(23.16, 64.72, 313.46°)
OKLaboklab(35.79% 0.0873 -0.134)
OKLCHoklch(35.79% 0.16 303.1)
XYZxyz(7.3809, 3.8478, 20.4284)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F187F #487F18
analogous
#1C187F #4F187F #7F187C
triadic
#4F187F #7F4F18 #187F4F
tetradic
#4F187F #7F1C18 #487F18 #187C7F
square
#4F187F #7F1C18 #487F18 #187C7F
split-complementary
#4F187F #7C7F18 #187F1C
monochromatic
#10051A #2F0E4C #4F187F #6F22B2 #8E38D9

Accessibility & contrast

On white

11.87
#4F187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4F187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F187F
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F187F#FFFFFF#000000##FFFFFF
##4F187F1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#45334B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f187f;
/* rgb */ color: rgb(79, 24, 127);
/* oklch */ color: oklch(35.8% 0.160 303.1);
Tailwind
colors: {
  custom: {
    50: '#865ca5',
    500: '#4f187f',
    950: '#000000',
  },
}
SCSS
$custom: #4f187f;
$custom-light: #865ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f187f",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 272.039,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35787,
    "c": 0.15996,
    "h": 303.1
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#4F187F
secondary
#75B33F
accent
#EB3D8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F187F

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

Preview Lab → · Contrast checker → · Palette generator →

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