#4F137E#4F137E

#4F137E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.164 H 304.0°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#4F137E
RGBrgb(79, 19, 126)
HSLhsl(274, 74%, 28%)
HSVhsv(274, 85%, 49%)
CMYKcmyk(37.3%, 84.9%, 0%, 50.6%)
CIE-LABlab(22.42, 46.16, -47.55)
CIE-LCHlch(22.42, 66.27, 314.15°)
OKLaboklab(35.24% 0.0916 -0.1357)
OKLCHoklch(35.24% 0.164 304)
XYZxyz(7.2223, 3.6344, 20.0556)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F137E #427E13
analogous
#19137E #4F137E #7E1377
triadic
#4F137E #7E4F13 #137E4F
tetradic
#4F137E #7E1913 #427E13 #13777E
square
#4F137E #7E1913 #427E13 #13777E
split-complementary
#4F137E #777E13 #137E19
monochromatic
#11041B #2E0B49 #4F137E #701BB3 #912CDF

Accessibility & contrast

On white

12.16
#4F137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4F137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F137E
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F137E#FFFFFF#000000##FFFFFF
##4F137E1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#45314A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f137e;
/* rgb */ color: rgb(79, 19, 126);
/* oklch */ color: oklch(35.2% 0.164 304.0);
Tailwind
colors: {
  custom: {
    50: '#865aa4',
    500: '#4f137e',
    950: '#000000',
  },
}
SCSS
$custom: #4f137e;
$custom-light: #865aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f137e",
  "rgb": {
    "r": 79,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 273.645,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35245,
    "c": 0.16371,
    "h": 304
  },
  "luminance": 0.03634
}

Semantic roles & 50–950 ramp

primary
#4F137E
secondary
#6FB439
accent
#F03789
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F137E

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

Preview Lab → · Contrast checker → · Palette generator →

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