#4B126A#4B126A

#4B126A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.144 H 309.9°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#4B126A
RGBrgb(75, 18, 106)
HSLhsl(279, 71%, 24%)
HSVhsv(279, 83%, 42%)
CMYKcmyk(29.2%, 83%, 0%, 58.4%)
CIE-LABlab(19.92, 41.10, -38.78)
CIE-LCHlch(19.92, 56.51, 316.66°)
OKLaboklab(32.83% 0.0922 -0.1101)
OKLCHoklch(32.83% 0.144 309.9)
XYZxyz(5.7190, 2.9692, 13.9047)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B126A #316A12
analogous
#1F126A #4B126A #6A125D
triadic
#4B126A #6A4B12 #126A4B
tetradic
#4B126A #6A1F12 #316A12 #125D6A
square
#4B126A #6A1F12 #316A12 #125D6A
split-complementary
#4B126A #5D6A12 #126A1F
monochromatic
#13041A #260936 #4B126A #701B9E #9524D3

Accessibility & contrast

On white

13.18
#4B126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4B126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B126A
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B126A#FFFFFF#000000##FFFFFF
##4B126A1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#003168
Tritanopia (blue-blind)
#46283E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4b126a;
/* rgb */ color: rgb(75, 18, 106);
/* oklch */ color: oklch(32.8% 0.144 309.9);
Tailwind
colors: {
  custom: {
    50: '#815895',
    500: '#4b126a',
    950: '#000000',
  },
}
SCSS
$custom: #4b126a;
$custom-light: #815895;
$custom-dark: #000000;
JSON
{
  "hex": "#4b126a",
  "rgb": {
    "r": 75,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 278.864,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.32826,
    "c": 0.14355,
    "h": 309.9
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

primary
#4B126A
secondary
#5CA236
accent
#EE3A79
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B126A

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

Preview Lab → · Contrast checker → · Palette generator →

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