#4F126D#4F126D

#4F126D is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.7% C 0.148 H 311.2°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#4F126D
RGBrgb(79, 18, 109)
HSLhsl(280, 72%, 25%)
HSVhsv(280, 83%, 43%)
CMYKcmyk(27.5%, 83.5%, 0%, 57.3%)
CIE-LABlab(20.82, 42.55, -39.24)
CIE-LCHlch(20.82, 57.88, 317.32°)
OKLaboklab(33.67% 0.0973 -0.1112)
OKLCHoklch(33.67% 0.148 311.2)
XYZxyz(6.2005, 3.1992, 14.7559)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F126D #306D12
analogous
#22126D #4F126D #6D125E
triadic
#4F126D #6D4F12 #126D4F
tetradic
#4F126D #6D2212 #306D12 #125E6D
square
#4F126D #6D2212 #306D12 #125E6D
split-complementary
#4F126D #5E6D12 #126D22
monochromatic
#13041A #290938 #4F126D #751BA2 #9B23D6

Accessibility & contrast

On white

12.81
#4F126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4F126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F126D
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F126D#FFFFFF#000000##FFFFFF
##4F126D1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#4B2940
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4f126d;
/* rgb */ color: rgb(79, 18, 109);
/* oklch */ color: oklch(33.7% 0.148 311.2);
Tailwind
colors: {
  custom: {
    50: '#845897',
    500: '#4f126d',
    950: '#000000',
  },
}
SCSS
$custom: #4f126d;
$custom-light: #845897;
$custom-dark: #000000;
JSON
{
  "hex": "#4f126d",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 280.22,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33672,
    "c": 0.14779,
    "h": 311.2
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#4F126D
secondary
#5BA437
accent
#EE3975
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F126D

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

Preview Lab → · Contrast checker → · Palette generator →

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