#4F187E#4F187E

#4F187E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.159 H 303.4°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#4F187E
RGBrgb(79, 24, 126)
HSLhsl(272, 68%, 29%)
HSVhsv(272, 81%, 49%)
CMYKcmyk(37.3%, 81%, 0%, 50.6%)
CIE-LABlab(23.07, 44.27, -46.49)
CIE-LCHlch(23.07, 64.19, 313.60°)
OKLaboklab(35.7% 0.0876 -0.1326)
OKLCHoklch(35.7% 0.159 303.4)
XYZxyz(7.3161, 3.8219, 20.0869)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F187E #477E18
analogous
#1C187E #4F187E #7E187A
triadic
#4F187E #7E4F18 #187E4F
tetradic
#4F187E #7E1C18 #477E18 #187A7E
square
#4F187E #7E1C18 #477E18 #187A7E
split-complementary
#4F187E #7A7E18 #187E1C
monochromatic
#10051A #2F0E4B #4F187E #6F22B1 #8F37D9

Accessibility & contrast

On white

11.90
#4F187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4F187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F187E
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F187E#FFFFFF#000000##FFFFFF
##4F187E1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f187e;
/* rgb */ color: rgb(79, 24, 126);
/* oklch */ color: oklch(35.7% 0.159 303.4);
Tailwind
colors: {
  custom: {
    50: '#855ca4',
    500: '#4f187e',
    950: '#000000',
  },
}
SCSS
$custom: #4f187e;
$custom-light: #855ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f187e",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 272.353,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35698,
    "c": 0.15891,
    "h": 303.4
  },
  "luminance": 0.03822
}

Semantic roles & 50–950 ramp

primary
#4F187E
secondary
#74B23F
accent
#EB3D8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F187E

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

Preview Lab → · Contrast checker → · Palette generator →

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