#4B125E#4B125E

#4B125E is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.132 H 316.0°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#4B125E
RGBrgb(75, 18, 94)
HSLhsl(285, 68%, 22%)
HSVhsv(285, 81%, 37%)
CMYKcmyk(20.2%, 80.9%, 0%, 63.1%)
CIE-LABlab(18.96, 38.38, -32.44)
CIE-LCHlch(18.96, 50.25, 319.79°)
OKLaboklab(31.85% 0.0946 -0.0914)
OKLCHoklch(31.85% 0.132 316)
XYZxyz(5.1380, 2.7368, 10.8451)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B125E #255E12
analogous
#25125E #4B125E #5E124B
triadic
#4B125E #5E4B12 #125E4B
tetradic
#4B125E #5E2512 #255E12 #124B5E
square
#4B125E #5E2512 #255E12 #124B5E
split-complementary
#4B125E #4B5E12 #125E25
monochromatic
#14051A #22082B #4B125E #741C91 #9D26C5

Accessibility & contrast

On white

13.57
#4B125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4B125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B125E
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B125E#FFFFFF#000000##FFFFFF
##4B125E1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#11305C
Tritanopia (blue-blind)
#4A2337
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4b125e;
/* rgb */ color: rgb(75, 18, 94);
/* oklch */ color: oklch(31.8% 0.132 316.0);
Tailwind
colors: {
  custom: {
    50: '#80578c',
    500: '#4b125e',
    950: '#000000',
  },
}
SCSS
$custom: #4b125e;
$custom-light: #80578c;
$custom-dark: #000000;
JSON
{
  "hex": "#4b125e",
  "rgb": {
    "r": 75,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 285,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31845,
    "c": 0.13156,
    "h": 316
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#4B125E
secondary
#4E9635
accent
#EB3D68
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4B125E

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

Preview Lab → · Contrast checker → · Palette generator →

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