#4F138E#4F138E

#4F138E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.180 H 298.6°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#4F138E
RGBrgb(79, 19, 142)
HSLhsl(269, 76%, 32%)
HSVhsv(269, 87%, 56%)
CMYKcmyk(44.4%, 86.6%, 0%, 44.3%)
CIE-LABlab(23.94, 50.03, -55.12)
CIE-LCHlch(23.94, 74.44, 312.23°)
OKLaboklab(36.75% 0.086 -0.1579)
OKLCHoklch(36.75% 0.18 298.6)
XYZxyz(8.3385, 4.0809, 25.9343)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F138E #528E13
analogous
#13158E #4F138E #8D138E
triadic
#4F138E #8E4F13 #138E4F
tetradic
#4F138E #8E1315 #528E13 #138E8D
square
#4F138E #8E1315 #528E13 #138E8D
split-complementary
#4F138E #8E8D13 #158E13
monochromatic
#130522 #310C58 #4F138E #6D1AC4 #8C37E4

Accessibility & contrast

On white

11.56
#4F138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4F138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F138E
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F138E#FFFFFF#000000##FFFFFF
##4F138E1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#3F3853
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f138e;
/* rgb */ color: rgb(79, 19, 142);
/* oklch */ color: oklch(36.8% 0.180 298.6);
Tailwind
colors: {
  custom: {
    50: '#885bb0',
    500: '#4f138e',
    950: '#000000',
  },
}
SCSS
$custom: #4f138e;
$custom-light: #885bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f138e",
  "rgb": {
    "r": 79,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 269.268,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36752,
    "c": 0.17976,
    "h": 298.6
  },
  "luminance": 0.04081
}

Semantic roles & 50–950 ramp

primary
#4F138E
secondary
#80C23B
accent
#F33596
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4F138E

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

Preview Lab → · Contrast checker → · Palette generator →

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