#4B126E#4B126E

#4B126E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.148 H 308.1°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#4B126E
RGBrgb(75, 18, 110)
HSLhsl(277, 72%, 25%)
HSVhsv(277, 84%, 43%)
CMYKcmyk(31.8%, 83.6%, 0%, 56.9%)
CIE-LABlab(20.26, 42.03, -40.84)
CIE-LCHlch(20.26, 58.60, 315.83°)
OKLaboklab(33.17% 0.0911 -0.1161)
OKLCHoklch(33.17% 0.148 308.1)
XYZxyz(5.9318, 3.0544, 15.0259)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B126E #356E12
analogous
#1D126E #4B126E #6E1263
triadic
#4B126E #6E4B12 #126E4B
tetradic
#4B126E #6E1D12 #356E12 #12636E
square
#4B126E #6E1D12 #356E12 #12636E
split-complementary
#4B126E #636E12 #126E1D
monochromatic
#12041A #270939 #4B126E #6F1BA3 #9323D7

Accessibility & contrast

On white

13.04
#4B126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4B126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B126E
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B126E#FFFFFF#000000##FFFFFF
##4B126E1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#452A40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4b126e;
/* rgb */ color: rgb(75, 18, 110);
/* oklch */ color: oklch(33.2% 0.148 308.1);
Tailwind
colors: {
  custom: {
    50: '#825898',
    500: '#4b126e',
    950: '#000000',
  },
}
SCSS
$custom: #4b126e;
$custom-light: #825898;
$custom-dark: #000000;
JSON
{
  "hex": "#4b126e",
  "rgb": {
    "r": 75,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 277.174,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3317,
    "c": 0.14758,
    "h": 308.1
  },
  "luminance": 0.03054
}

Semantic roles & 50–950 ramp

primary
#4B126E
secondary
#61A537
accent
#EF397E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B126E

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

Preview Lab → · Contrast checker → · Palette generator →

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