#4B126C#4B126C

#4B126C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.146 H 309.0°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#4B126C
RGBrgb(75, 18, 108)
HSLhsl(278, 71%, 25%)
HSVhsv(278, 83%, 42%)
CMYKcmyk(30.6%, 83.3%, 0%, 57.6%)
CIE-LABlab(20.09, 41.57, -39.81)
CIE-LCHlch(20.09, 57.56, 316.23°)
OKLaboklab(33% 0.0917 -0.1131)
OKLCHoklch(33% 0.146 309)
XYZxyz(5.8242, 3.0113, 14.4589)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B126C #336C12
analogous
#1E126C #4B126C #6C1260
triadic
#4B126C #6C4B12 #126C4B
tetradic
#4B126C #6C1E12 #336C12 #12606C
square
#4B126C #6C1E12 #336C12 #12606C
split-complementary
#4B126C #606C12 #126C1E
monochromatic
#12041A #270938 #4B126C #6F1BA0 #9423D5

Accessibility & contrast

On white

13.11
#4B126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4B126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B126C
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B126C#FFFFFF#000000##FFFFFF
##4B126C1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#00316A
Tritanopia (blue-blind)
#46293F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4b126c;
/* rgb */ color: rgb(75, 18, 108);
/* oklch */ color: oklch(33.0% 0.146 309.0);
Tailwind
colors: {
  custom: {
    50: '#815897',
    500: '#4b126c',
    950: '#000000',
  },
}
SCSS
$custom: #4b126c;
$custom-light: #815897;
$custom-dark: #000000;
JSON
{
  "hex": "#4b126c",
  "rgb": {
    "r": 75,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 278,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32997,
    "c": 0.14556,
    "h": 309
  },
  "luminance": 0.03011
}

Semantic roles & 50–950 ramp

primary
#4B126C
secondary
#5EA336
accent
#EE3A7C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B126C

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

Preview Lab → · Contrast checker → · Palette generator →

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