#4F126E#4F126E

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

Color values

HEX#4F126E
RGBrgb(79, 18, 110)
HSLhsl(280, 72%, 25%)
HSVhsv(280, 84%, 43%)
CMYKcmyk(28.2%, 83.6%, 0%, 56.9%)
CIE-LABlab(20.91, 42.78, -39.75)
CIE-LCHlch(20.91, 58.40, 317.10°)
OKLaboklab(33.76% 0.097 -0.1128)
OKLCHoklch(33.76% 0.149 310.7)
XYZxyz(6.2547, 3.2208, 15.0410)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F126E #316E12
analogous
#21126E #4F126E #6E125F
triadic
#4F126E #6E4F12 #126E4F
tetradic
#4F126E #6E2112 #316E12 #125F6E
square
#4F126E #6E2112 #316E12 #125F6E
split-complementary
#4F126E #5F6E12 #126E21
monochromatic
#13041A #290939 #4F126E #751BA3 #9B23D7

Accessibility & contrast

On white

12.77
#4F126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F126E
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F126E#FFFFFF#000000##FFFFFF
##4F126E1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00336C
Tritanopia (blue-blind)
#4B2940
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4f126e;
/* rgb */ color: rgb(79, 18, 110);
/* oklch */ color: oklch(33.8% 0.149 310.7);
Tailwind
colors: {
  custom: {
    50: '#845998',
    500: '#4f126e',
    950: '#000000',
  },
}
SCSS
$custom: #4f126e;
$custom-light: #845998;
$custom-dark: #000000;
JSON
{
  "hex": "#4f126e",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 279.783,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33756,
    "c": 0.14877,
    "h": 310.7
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#4F126E
secondary
#5CA537
accent
#EF3976
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F126E

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

Preview Lab → · Contrast checker → · Palette generator →

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