#4F137D#4F137D

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

Color values

HEX#4F137D
RGBrgb(79, 19, 125)
HSLhsl(274, 74%, 28%)
HSVhsv(274, 85%, 49%)
CMYKcmyk(36.8%, 84.8%, 0%, 51%)
CIE-LABlab(22.33, 45.92, -47.06)
CIE-LCHlch(22.33, 65.75, 314.30°)
OKLaboklab(35.15% 0.0919 -0.1342)
OKLCHoklch(35.15% 0.163 304.4)
XYZxyz(7.1581, 3.6087, 19.7175)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F137D #417D13
analogous
#1A137D #4F137D #7D1376
triadic
#4F137D #7D4F13 #137D4F
tetradic
#4F137D #7D1A13 #417D13 #13767D
square
#4F137D #7D1A13 #417D13 #13767D
split-complementary
#4F137D #767D13 #137D1A
monochromatic
#11041B #2D0B48 #4F137D #711BB2 #912CDF

Accessibility & contrast

On white

12.20
#4F137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F137D
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F137D#FFFFFF#000000##FFFFFF
##4F137D1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#463149
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f137d;
/* rgb */ color: rgb(79, 19, 125);
/* oklch */ color: oklch(35.2% 0.163 304.4);
Tailwind
colors: {
  custom: {
    50: '#865aa3',
    500: '#4f137d',
    950: '#000000',
  },
}
SCSS
$custom: #4f137d;
$custom-light: #865aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f137d",
  "rgb": {
    "r": 79,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 273.962,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35154,
    "c": 0.16271,
    "h": 304.4
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#4F137D
secondary
#6EB339
accent
#F03888
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F137D

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

Preview Lab → · Contrast checker → · Palette generator →

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