#4B126B#4B126B

#4B126B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.145 H 309.5°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#4B126B
RGBrgb(75, 18, 107)
HSLhsl(278, 71%, 25%)
HSVhsv(278, 83%, 42%)
CMYKcmyk(29.9%, 83.2%, 0%, 58%)
CIE-LABlab(20.00, 41.33, -39.30)
CIE-LCHlch(20.00, 57.03, 316.44°)
OKLaboklab(32.91% 0.0919 -0.1116)
OKLCHoklch(32.91% 0.145 309.5)
XYZxyz(5.7713, 2.9901, 14.1802)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B126B #326B12
analogous
#1F126B #4B126B #6B125F
triadic
#4B126B #6B4B12 #126B4B
tetradic
#4B126B #6B1F12 #326B12 #125F6B
square
#4B126B #6B1F12 #326B12 #125F6B
split-complementary
#4B126B #5F6B12 #126B1F
monochromatic
#12041A #260937 #4B126B #701B9F #9424D4

Accessibility & contrast

On white

13.14
#4B126B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B126B
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B126B#FFFFFF#000000##FFFFFF
##4B126B1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#003169
Tritanopia (blue-blind)
#46293F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4b126b;
/* rgb */ color: rgb(75, 18, 107);
/* oklch */ color: oklch(32.9% 0.145 309.5);
Tailwind
colors: {
  custom: {
    50: '#815896',
    500: '#4b126b',
    950: '#000000',
  },
}
SCSS
$custom: #4b126b;
$custom-light: #815896;
$custom-dark: #000000;
JSON
{
  "hex": "#4b126b",
  "rgb": {
    "r": 75,
    "g": 18,
    "b": 107
  },
  "hsl": {
    "h": 278.427,
    "s": 71.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.32911,
    "c": 0.14455,
    "h": 309.5
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#4B126B
secondary
#5DA236
accent
#EE3A7B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4B126B

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

Preview Lab → · Contrast checker → · Palette generator →

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