#4F137C#4F137C

#4F137C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.162 H 304.8°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#4F137C
RGBrgb(79, 19, 124)
HSLhsl(274, 73%, 28%)
HSVhsv(274, 85%, 49%)
CMYKcmyk(36.3%, 84.7%, 0%, 51.4%)
CIE-LABlab(22.24, 45.68, -46.57)
CIE-LCHlch(22.24, 65.24, 314.45°)
OKLaboklab(35.06% 0.0923 -0.1328)
OKLCHoklch(35.06% 0.162 304.8)
XYZxyz(7.0946, 3.5833, 19.3828)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F137C #407C13
analogous
#1B137C #4F137C #7C1374
triadic
#4F137C #7C4F13 #137C4F
tetradic
#4F137C #7C1B13 #407C13 #13747C
square
#4F137C #7C1B13 #407C13 #13747C
split-complementary
#4F137C #747C13 #137C1B
monochromatic
#11041B #2D0B47 #4F137C #711BB1 #922BDF

Accessibility & contrast

On white

12.23
#4F137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4F137C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F137C
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F137C#FFFFFF#000000##FFFFFF
##4F137C1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#463049
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f137c;
/* rgb */ color: rgb(79, 19, 124);
/* oklch */ color: oklch(35.1% 0.162 304.8);
Tailwind
colors: {
  custom: {
    50: '#865aa3',
    500: '#4f137c',
    950: '#000000',
  },
}
SCSS
$custom: #4f137c;
$custom-light: #865aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f137c",
  "rgb": {
    "r": 79,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 274.286,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35064,
    "c": 0.1617,
    "h": 304.8
  },
  "luminance": 0.03583
}

Semantic roles & 50–950 ramp

primary
#4F137C
secondary
#6DB239
accent
#F03887
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F137C

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

Preview Lab → · Contrast checker → · Palette generator →

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