#4B126F#4B126F

#4B126F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.149 H 307.7°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#4B126F
RGBrgb(75, 18, 111)
HSLhsl(277, 72%, 25%)
HSVhsv(277, 84%, 44%)
CMYKcmyk(32.4%, 83.8%, 0%, 56.5%)
CIE-LABlab(20.35, 42.27, -41.34)
CIE-LCHlch(20.35, 59.13, 315.64°)
OKLaboklab(33.26% 0.0908 -0.1176)
OKLCHoklch(33.26% 0.149 307.7)
XYZxyz(5.9866, 3.0763, 15.3142)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B126F #366F12
analogous
#1C126F #4B126F #6F1264
triadic
#4B126F #6F4B12 #126F4B
tetradic
#4B126F #6F1C12 #366F12 #12646F
square
#4B126F #6F1C12 #366F12 #12646F
split-complementary
#4B126F #646F12 #126F1C
monochromatic
#12041A #27093A #4B126F #6F1BA4 #9223D8

Accessibility & contrast

On white

13.00
#4B126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4B126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B126F
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B126F#FFFFFF#000000##FFFFFF
##4B126F1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#452A41
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4b126f;
/* rgb */ color: rgb(75, 18, 111);
/* oklch */ color: oklch(33.3% 0.149 307.7);
Tailwind
colors: {
  custom: {
    50: '#825899',
    500: '#4b126f',
    950: '#000000',
  },
}
SCSS
$custom: #4b126f;
$custom-light: #825899;
$custom-dark: #000000;
JSON
{
  "hex": "#4b126f",
  "rgb": {
    "r": 75,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 276.774,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33258,
    "c": 0.14859,
    "h": 307.7
  },
  "luminance": 0.03076
}

Semantic roles & 50–950 ramp

primary
#4B126F
secondary
#62A637
accent
#EF397F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B126F

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

Preview Lab → · Contrast checker → · Palette generator →

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