#4F137F#4F137F

#4F137F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.165 H 303.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#4F137F
RGBrgb(79, 19, 127)
HSLhsl(273, 74%, 29%)
HSVhsv(273, 85%, 50%)
CMYKcmyk(37.8%, 85%, 0%, 50.2%)
CIE-LABlab(22.52, 46.40, -48.03)
CIE-LCHlch(22.52, 66.78, 314.01°)
OKLaboklab(35.34% 0.0913 -0.1371)
OKLCHoklch(35.34% 0.165 303.7)
XYZxyz(7.2872, 3.6603, 20.3972)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F137F #437F13
analogous
#19137F #4F137F #7F1379
triadic
#4F137F #7F4F13 #137F4F
tetradic
#4F137F #7F1913 #437F13 #13797F
square
#4F137F #7F1913 #437F13 #13797F
split-complementary
#4F137F #797F13 #137F19
monochromatic
#11041B #2E0B4A #4F137F #701BB4 #902DE0

Accessibility & contrast

On white

12.12
#4F137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F137F
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F137F#FFFFFF#000000##FFFFFF
##4F137F1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#45314A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f137f;
/* rgb */ color: rgb(79, 19, 127);
/* oklch */ color: oklch(35.3% 0.165 303.7);
Tailwind
colors: {
  custom: {
    50: '#865aa5',
    500: '#4f137f',
    950: '#000000',
  },
}
SCSS
$custom: #4f137f;
$custom-light: #865aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f137f",
  "rgb": {
    "r": 79,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 273.333,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35337,
    "c": 0.1647,
    "h": 303.7
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

primary
#4F137F
secondary
#70B439
accent
#F1378A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F137F

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

Preview Lab → · Contrast checker → · Palette generator →

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