#4F128F#4F128F

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

Color values

HEX#4F128F
RGBrgb(79, 18, 143)
HSLhsl(269, 78%, 32%)
HSVhsv(269, 87%, 56%)
CMYKcmyk(44.8%, 87.4%, 0%, 43.9%)
CIE-LABlab(23.93, 50.59, -55.76)
CIE-LCHlch(23.93, 75.29, 312.22°)
OKLaboklab(36.78% 0.0862 -0.1597)
OKLCHoklch(36.78% 0.182 298.3)
XYZxyz(8.3974, 4.0779, 26.3260)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F128F #528F12
analogous
#12148F #4F128F #8E128F
triadic
#4F128F #8F4F12 #128F4F
tetradic
#4F128F #8F1214 #528F12 #128F8E
square
#4F128F #8F1214 #528F12 #128F8E
split-complementary
#4F128F #8F8E12 #148F12
monochromatic
#130422 #310B59 #4F128F #6D19C5 #8C36E6

Accessibility & contrast

On white

11.57
#4F128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F128F
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F128F#FFFFFF#000000##FFFFFF
##4F128F1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#3E3854
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f128f;
/* rgb */ color: rgb(79, 18, 143);
/* oklch */ color: oklch(36.8% 0.181 298.3);
Tailwind
colors: {
  custom: {
    50: '#885bb1',
    500: '#4f128f',
    950: '#000000',
  },
}
SCSS
$custom: #4f128f;
$custom-light: #885bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f128f",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 269.28,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36775,
    "c": 0.1815,
    "h": 298.3
  },
  "luminance": 0.04078
}

Semantic roles & 50–950 ramp

primary
#4F128F
secondary
#80C33A
accent
#F43496
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4F128F

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

Preview Lab → · Contrast checker → · Palette generator →

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