#4B256E#4B256E

#4B256E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.123 H 304.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#4B256E
RGBrgb(75, 37, 110)
HSLhsl(271, 50%, 29%)
HSVhsv(271, 66%, 43%)
CMYKcmyk(31.8%, 66.4%, 0%, 56.9%)
CIE-LABlab(23.49, 32.97, -35.61)
CIE-LCHlch(23.49, 48.53, 312.79°)
OKLaboklab(35.47% 0.0702 -0.1009)
OKLCHoklch(35.47% 0.123 304.9)
XYZxyz(6.3771, 3.9448, 15.1743)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B256E #486E25
analogous
#27256E #4B256E #6E256D
triadic
#4B256E #6E4B25 #256E4B
tetradic
#4B256E #6E2725 #486E25 #256D6E
square
#4B256E #6E2725 #486E25 #256D6E
split-complementary
#4B256E #6D6E25 #256E27
monochromatic
#100817 #2C1640 #4B256E #6A349C #894BC2

Accessibility & contrast

On white

11.74
#4B256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4B256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B256E
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B256E#FFFFFF#000000##FFFFFF
##4B256E1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003770
Deuteranopia (green-blind)
#12386C
Tritanopia (blue-blind)
#453446
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b256e;
/* rgb */ color: rgb(75, 37, 110);
/* oklch */ color: oklch(35.5% 0.123 304.9);
Tailwind
colors: {
  custom: {
    50: '#806298',
    500: '#4b256e',
    950: '#000000',
  },
}
SCSS
$custom: #4b256e;
$custom-light: #806298;
$custom-dark: #000000;
JSON
{
  "hex": "#4b256e",
  "rgb": {
    "r": 75,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 271.233,
    "s": 49.66,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35467,
    "c": 0.12291,
    "h": 304.9
  },
  "luminance": 0.03945
}

Semantic roles & 50–950 ramp

primary
#4B256E
secondary
#76A14E
accent
#D94F91
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #4B256E

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

Preview Lab → · Contrast checker → · Palette generator →

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