#4F227B#4F227B

#4F227B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.144 H 303.0°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#4F227B
RGBrgb(79, 34, 123)
HSLhsl(270, 57%, 31%)
HSVhsv(270, 72%, 48%)
CMYKcmyk(35.8%, 72.4%, 0%, 51.8%)
CIE-LABlab(24.44, 38.92, -42.36)
CIE-LCHlch(24.44, 57.53, 312.57°)
OKLaboklab(36.58% 0.0783 -0.1205)
OKLCHoklch(36.58% 0.144 303)
XYZxyz(7.3708, 4.2364, 19.1644)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F227B #4E7B22
analogous
#22227B #4F227B #7B227A
triadic
#4F227B #7B4F22 #227B4F
tetradic
#4F227B #7B2222 #4E7B22 #227A7B
square
#4F227B #7B2222 #4E7B22 #227A7B
split-complementary
#4F227B #7A7B22 #227B22
monochromatic
#11071B #30154B #4F227B #6E2FAB #8C4ACD

Accessibility & contrast

On white

11.37
#4F227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F227B
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F227B#FFFFFF#000000##FFFFFF
##4F227B1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#46374C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f227b;
/* rgb */ color: rgb(79, 34, 123);
/* oklch */ color: oklch(36.6% 0.144 303.0);
Tailwind
colors: {
  custom: {
    50: '#8561a2',
    500: '#4f227b',
    950: '#000000',
  },
}
SCSS
$custom: #4f227b;
$custom-light: #8561a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f227b",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 270.337,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36582,
    "c": 0.14374,
    "h": 303
  },
  "luminance": 0.04236
}

Semantic roles & 50–950 ramp

primary
#4F227B
secondary
#7CAE4B
accent
#E04893
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F227B

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

Preview Lab → · Contrast checker → · Palette generator →

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