#4F126A#4F126A

#4F126A is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.4% C 0.145 H 312.6°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#4F126A
RGBrgb(79, 18, 106)
HSLhsl(282, 71%, 24%)
HSVhsv(282, 83%, 42%)
CMYKcmyk(25.5%, 83%, 0%, 58.4%)
CIE-LABlab(20.58, 41.88, -37.68)
CIE-LCHlch(20.58, 56.34, 318.02°)
OKLaboklab(33.42% 0.098 -0.1067)
OKLCHoklch(33.42% 0.145 312.6)
XYZxyz(6.0418, 3.1357, 13.9199)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F126A #2D6A12
analogous
#23126A #4F126A #6A1259
triadic
#4F126A #6A4F12 #126A4F
tetradic
#4F126A #6A2312 #2D6A12 #12596A
square
#4F126A #6A2312 #2D6A12 #12596A
split-complementary
#4F126A #596A12 #126A23
monochromatic
#13041A #280936 #4F126A #761B9E #9D24D3

Accessibility & contrast

On white

12.91
#4F126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4F126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F126A
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F126A#FFFFFF#000000##FFFFFF
##4F126A1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#043368
Tritanopia (blue-blind)
#4C283E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4f126a;
/* rgb */ color: rgb(79, 18, 106);
/* oklch */ color: oklch(33.4% 0.145 312.6);
Tailwind
colors: {
  custom: {
    50: '#845895',
    500: '#4f126a',
    950: '#000000',
  },
}
SCSS
$custom: #4f126a;
$custom-light: #845895;
$custom-dark: #000000;
JSON
{
  "hex": "#4f126a",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 281.591,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33423,
    "c": 0.14485,
    "h": 312.6
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#4F126A
secondary
#57A236
accent
#EE3A71
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F126A

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

Preview Lab → · Contrast checker → · Palette generator →

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