#4B277F#4B277F

#4B277F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.141 H 297.9°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#4B277F
RGBrgb(75, 39, 127)
HSLhsl(265, 53%, 33%)
HSVhsv(265, 69%, 50%)
CMYKcmyk(40.9%, 69.3%, 0%, 50.2%)
CIE-LABlab(25.20, 36.48, -43.69)
CIE-LCHlch(25.20, 56.92, 309.86°)
OKLaboklab(37.11% 0.066 -0.1246)
OKLCHoklch(37.11% 0.141 297.9)
XYZxyz(7.4570, 4.4791, 20.5462)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B277F #5B7F27
analogous
#272F7F #4B277F #77277F
triadic
#4B277F #7F4B27 #277F4B
tetradic
#4B277F #7F272F #5B7F27 #277F77
square
#4B277F #7F272F #5B7F27 #277F77
split-complementary
#4B277F #7F7727 #2F7F27
monochromatic
#140A21 #2F1950 #4B277F #6735AE #8655CB

Accessibility & contrast

On white

11.08
#4B277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4B277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B277F
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B277F#FFFFFF#000000##FFFFFF
##4B277F1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#3E3C4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b277f;
/* rgb */ color: rgb(75, 39, 127);
/* oklch */ color: oklch(37.1% 0.141 297.9);
Tailwind
colors: {
  custom: {
    50: '#8264a5',
    500: '#4b277f',
    950: '#000000',
  },
}
SCSS
$custom: #4b277f;
$custom-light: #8264a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b277f",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 264.545,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37109,
    "c": 0.14101,
    "h": 297.9
  },
  "luminance": 0.04479
}

Semantic roles & 50–950 ramp

primary
#4B277F
secondary
#89B052
accent
#DC4BA1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4B277F

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

Preview Lab → · Contrast checker → · Palette generator →

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