#4F126B#4F126B

#4F126B is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.146 H 312.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#4F126B
RGBrgb(79, 18, 107)
HSLhsl(281, 71%, 25%)
HSVhsv(281, 83%, 42%)
CMYKcmyk(26.2%, 83.2%, 0%, 58%)
CIE-LABlab(20.66, 42.10, -38.20)
CIE-LCHlch(20.66, 56.85, 317.78°)
OKLaboklab(33.51% 0.0978 -0.1082)
OKLCHoklch(33.51% 0.146 312.1)
XYZxyz(6.0941, 3.1566, 14.1953)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F126B #2E6B12
analogous
#23126B #4F126B #6B125B
triadic
#4F126B #6B4F12 #126B4F
tetradic
#4F126B #6B2312 #2E6B12 #125B6B
square
#4F126B #6B2312 #2E6B12 #125B6B
split-complementary
#4F126B #5B6B12 #126B23
monochromatic
#13041A #280937 #4F126B #761B9F #9C24D4

Accessibility & contrast

On white

12.87
#4F126B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F126B
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F126B#FFFFFF#000000##FFFFFF
##4F126B1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#013369
Tritanopia (blue-blind)
#4C283F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4f126b;
/* rgb */ color: rgb(79, 18, 107);
/* oklch */ color: oklch(33.5% 0.146 312.1);
Tailwind
colors: {
  custom: {
    50: '#845896',
    500: '#4f126b',
    950: '#000000',
  },
}
SCSS
$custom: #4f126b;
$custom-light: #845896;
$custom-dark: #000000;
JSON
{
  "hex": "#4f126b",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 107
  },
  "hsl": {
    "h": 281.124,
    "s": 71.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33505,
    "c": 0.14583,
    "h": 312.1
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#4F126B
secondary
#58A236
accent
#EE3A73
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F126B

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

Preview Lab → · Contrast checker → · Palette generator →

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