#4C257A#4C257A

#4C257A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.138 H 300.8°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#4C257A
RGBrgb(76, 37, 122)
HSLhsl(268, 53%, 31%)
HSVhsv(268, 70%, 48%)
CMYKcmyk(37.7%, 69.7%, 0%, 52.2%)
CIE-LABlab(24.53, 36.42, -41.60)
CIE-LCHlch(24.53, 55.29, 311.20°)
OKLaboklab(36.53% 0.0705 -0.1184)
OKLCHoklch(36.53% 0.138 300.8)
XYZxyz(7.1541, 4.2647, 18.8548)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C257A #537A25
analogous
#25297A #4C257A #76257A
triadic
#4C257A #7A4C25 #257A4C
tetradic
#4C257A #7A2529 #537A25 #257A76
square
#4C257A #7A2529 #537A25 #257A76
split-complementary
#4C257A #7A7625 #297A25
monochromatic
#11091C #2F174B #4C257A #6933A9 #8850CA

Accessibility & contrast

On white

11.33
#4C257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C257A
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C257A#FFFFFF#000000##FFFFFF
##4C257A1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c257a;
/* rgb */ color: rgb(76, 37, 122);
/* oklch */ color: oklch(36.5% 0.138 300.8);
Tailwind
colors: {
  custom: {
    50: '#8262a1',
    500: '#4c257a',
    950: '#000000',
  },
}
SCSS
$custom: #4c257a;
$custom-light: #8262a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c257a",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 267.529,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36534,
    "c": 0.13784,
    "h": 300.8
  },
  "luminance": 0.04265
}

Semantic roles & 50–950 ramp

primary
#4C257A
secondary
#81AC4E
accent
#DD4B9A
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4C257A

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

Preview Lab → · Contrast checker → · Palette generator →

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