#4B257A#4B257A

#4B257A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.138 H 300.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4B257A
RGBrgb(75, 37, 122)
HSLhsl(267, 53%, 31%)
HSVhsv(267, 70%, 48%)
CMYKcmyk(38.5%, 69.7%, 0%, 52.2%)
CIE-LABlab(24.40, 36.20, -41.82)
CIE-LCHlch(24.40, 55.31, 310.88°)
OKLaboklab(36.41% 0.069 -0.1191)
OKLCHoklch(36.41% 0.138 300.1)
XYZxyz(7.0752, 4.2241, 18.8512)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B257A #547A25
analogous
#25297A #4B257A #75257A
triadic
#4B257A #7A4B25 #257A4B
tetradic
#4B257A #7A2529 #547A25 #257A75
square
#4B257A #7A2529 #547A25 #257A75
split-complementary
#4B257A #7A7525 #297A25
monochromatic
#11091C #2E174B #4B257A #6833A9 #8650CA

Accessibility & contrast

On white

11.38
#4B257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4B257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B257A
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B257A#FFFFFF#000000##FFFFFF
##4B257A1.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#41394C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4b257a;
/* rgb */ color: rgb(75, 37, 122);
/* oklch */ color: oklch(36.4% 0.138 300.1);
Tailwind
colors: {
  custom: {
    50: '#8262a1',
    500: '#4b257a',
    950: '#000000',
  },
}
SCSS
$custom: #4b257a;
$custom-light: #8262a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b257a",
  "rgb": {
    "r": 75,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 266.824,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36412,
    "c": 0.13766,
    "h": 300.1
  },
  "luminance": 0.04224
}

Semantic roles & 50–950 ramp

primary
#4B257A
secondary
#82AC4E
accent
#DD4B9C
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B257A

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

Preview Lab → · Contrast checker → · Palette generator →

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