#4B277E#4B277E

#4B277E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.0% C 0.140 H 298.2°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#4B277E
RGBrgb(75, 39, 126)
HSLhsl(265, 53%, 32%)
HSVhsv(265, 69%, 49%)
CMYKcmyk(40.5%, 69%, 0%, 50.6%)
CIE-LABlab(25.12, 36.20, -43.19)
CIE-LCHlch(25.12, 56.35, 309.97°)
OKLaboklab(37.03% 0.0662 -0.1231)
OKLCHoklch(37.03% 0.14 298.2)
XYZxyz(7.3921, 4.4531, 20.2047)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B277E #5A7E27
analogous
#272E7E #4B277E #77277E
triadic
#4B277E #7E4B27 #277E4B
tetradic
#4B277E #7E272E #5A7E27 #277E77
square
#4B277E #7E272E #5A7E27 #277E77
split-complementary
#4B277E #7E7727 #2E7E27
monochromatic
#130A21 #2F194F #4B277E #6735AD #8655CA

Accessibility & contrast

On white

11.11
#4B277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4B277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B277E
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B277E#FFFFFF#000000##FFFFFF
##4B277E1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#3F3B4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b277e;
/* rgb */ color: rgb(75, 39, 126);
/* oklch */ color: oklch(37.0% 0.140 298.2);
Tailwind
colors: {
  custom: {
    50: '#8264a4',
    500: '#4b277e',
    950: '#000000',
  },
}
SCSS
$custom: #4b277e;
$custom-light: #8264a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4b277e",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 264.828,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37027,
    "c": 0.13977,
    "h": 298.2
  },
  "luminance": 0.04453
}

Semantic roles & 50–950 ramp

primary
#4B277E
secondary
#88AF52
accent
#DC4CA0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4B277E

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

Preview Lab → · Contrast checker → · Palette generator →

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