#4F126F#4F126F

#4F126F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.150 H 310.3°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#4F126F
RGBrgb(79, 18, 111)
HSLhsl(279, 72%, 25%)
HSVhsv(279, 84%, 44%)
CMYKcmyk(28.8%, 83.8%, 0%, 56.5%)
CIE-LABlab(20.99, 43.01, -40.27)
CIE-LCHlch(20.99, 58.92, 316.89°)
OKLaboklab(33.84% 0.0968 -0.1143)
OKLCHoklch(33.84% 0.15 310.3)
XYZxyz(6.3094, 3.2427, 15.3294)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F126F #326F12
analogous
#21126F #4F126F #6F1260
triadic
#4F126F #6F4F12 #126F4F
tetradic
#4F126F #6F2112 #326F12 #12606F
square
#4F126F #6F2112 #326F12 #12606F
split-complementary
#4F126F #606F12 #126F21
monochromatic
#13041A #2A093A #4F126F #741BA4 #9A23D8

Accessibility & contrast

On white

12.74
#4F126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4F126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F126F
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F126F#FFFFFF#000000##FFFFFF
##4F126F1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#4A2A41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4f126f;
/* rgb */ color: rgb(79, 18, 111);
/* oklch */ color: oklch(33.8% 0.150 310.3);
Tailwind
colors: {
  custom: {
    50: '#845999',
    500: '#4f126f',
    950: '#000000',
  },
}
SCSS
$custom: #4f126f;
$custom-light: #845999;
$custom-dark: #000000;
JSON
{
  "hex": "#4f126f",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 279.355,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3384,
    "c": 0.14975,
    "h": 310.3
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#4F126F
secondary
#5DA637
accent
#EF3978
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F126F

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

Preview Lab → · Contrast checker → · Palette generator →

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