#4F125A#4F125A

#4F125A is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.129 H 321.0°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#4F125A
RGBrgb(79, 18, 90)
HSLhsl(291, 67%, 21%)
HSVhsv(291, 80%, 35%)
CMYKcmyk(12.2%, 80%, 0%, 64.7%)
CIE-LABlab(19.36, 38.42, -29.08)
CIE-LCHlch(19.36, 48.19, 322.88°)
OKLaboklab(32.18% 0.1006 -0.0814)
OKLCHoklch(32.18% 0.129 321)
XYZxyz(5.2860, 2.8333, 9.9393)
Luminance0.0283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F125A #1D5A12
analogous
#2B125A #4F125A #5A1241
triadic
#4F125A #5A4F12 #125A4F
tetradic
#4F125A #5A2B12 #1D5A12 #12415A
square
#4F125A #5A2B12 #1D5A12 #12415A
split-complementary
#4F125A #415A12 #125A2B
monochromatic
#16051A #220827 #4F125A #7C1C8D #A926C0

Accessibility & contrast

On white

13.40
#4F125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4F125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F125A
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F125A#FFFFFF#000000##FFFFFF
##4F125A1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#1A3158
Tritanopia (blue-blind)
#502035
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4f125a;
/* rgb */ color: rgb(79, 18, 90);
/* oklch */ color: oklch(32.2% 0.129 321.0);
Tailwind
colors: {
  custom: {
    50: '#835789',
    500: '#4f125a',
    950: '#000000',
  },
}
SCSS
$custom: #4f125a;
$custom-light: #835789;
$custom-dark: #000000;
JSON
{
  "hex": "#4f125a",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 290.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32179,
    "c": 0.12942,
    "h": 321
  },
  "luminance": 0.02833
}

Semantic roles & 50–950 ramp

primary
#4F125A
secondary
#449335
accent
#EA3E58
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4F125A

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

Preview Lab → · Contrast checker → · Palette generator →

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