#4F277B#4F277B

#4F277B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.137 H 302.0°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#4F277B
RGBrgb(79, 39, 123)
HSLhsl(269, 52%, 32%)
HSVhsv(269, 68%, 48%)
CMYKcmyk(35.8%, 68.3%, 0%, 51.8%)
CIE-LABlab(25.39, 36.28, -40.82)
CIE-LCHlch(25.39, 54.61, 311.63°)
OKLaboklab(37.27% 0.0725 -0.116)
OKLCHoklch(37.27% 0.137 302)
XYZxyz(7.5243, 4.5433, 19.2156)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F277B #537B27
analogous
#27297B #4F277B #79277B
triadic
#4F277B #7B4F27 #277B4F
tetradic
#4F277B #7B2729 #537B27 #277B79
square
#4F277B #7B2729 #537B27 #277B79
split-complementary
#4F277B #7B7927 #297B27
monochromatic
#130A1E #31184D #4F277B #6D36A9 #8B54C9

Accessibility & contrast

On white

11.00
#4F277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4F277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F277B
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F277B#FFFFFF#000000##FFFFFF
##4F277B1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#033C79
Tritanopia (blue-blind)
#463A4D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f277b;
/* rgb */ color: rgb(79, 39, 123);
/* oklch */ color: oklch(37.3% 0.137 302.0);
Tailwind
colors: {
  custom: {
    50: '#8464a2',
    500: '#4f277b',
    950: '#000000',
  },
}
SCSS
$custom: #4f277b;
$custom-light: #8464a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f277b",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 268.571,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37266,
    "c": 0.13679,
    "h": 302
  },
  "luminance": 0.04543
}

Semantic roles & 50–950 ramp

primary
#4F277B
secondary
#81AD51
accent
#DB4C97
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4F277B

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

Preview Lab → · Contrast checker → · Palette generator →

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