#4B255C#4B255C

#4B255C is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.2% C 0.101 H 314.2°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#4B255C
RGBrgb(75, 37, 92)
HSLhsl(281, 43%, 25%)
HSVhsv(281, 60%, 36%)
CMYKcmyk(18.5%, 59.8%, 0%, 63.9%)
CIE-LABlab(22.27, 28.36, -25.80)
CIE-LCHlch(22.27, 38.34, 317.70°)
OKLaboklab(34.19% 0.0702 -0.0721)
OKLCHoklch(34.19% 0.101 314.2)
XYZxyz(5.4947, 3.5919, 10.5270)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B255C #365C25
analogous
#30255C #4B255C #5C2551
triadic
#4B255C #5C4B25 #255C4B
tetradic
#4B255C #5C3025 #365C25 #25515C
square
#4B255C #5C3025 #365C25 #25515C
split-complementary
#4B255C #515C25 #255C30
monochromatic
#120916 #271330 #4B255C #6F3788 #9248B3

Accessibility & contrast

On white

12.22
#4B255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4B255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B255C
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B255C#FFFFFF#000000##FFFFFF
##4B255C1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16335E
Deuteranopia (green-blind)
#24365B
Tritanopia (blue-blind)
#4A2E3C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b255c;
/* rgb */ color: rgb(75, 37, 92);
/* oklch */ color: oklch(34.2% 0.101 314.2);
Tailwind
colors: {
  custom: {
    50: '#7f618a',
    500: '#4b255c',
    950: '#000000',
  },
}
SCSS
$custom: #4b255c;
$custom-light: #7f618a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b255c",
  "rgb": {
    "r": 75,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 281.455,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34192,
    "c": 0.10069,
    "h": 314.2
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#4B255C
secondary
#628F4D
accent
#D2557C
background
#F7F5F8
surface
#EEEAF0
border
#C9C6CB
text
#0A050C
muted
#7C797D

Preview Lab

Preview with #4B255C

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

Preview Lab → · Contrast checker → · Palette generator →

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