#4F227C#4F227C

#4F227C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.145 H 302.6°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#4F227C
RGBrgb(79, 34, 124)
HSLhsl(270, 57%, 31%)
HSVhsv(270, 73%, 49%)
CMYKcmyk(36.3%, 72.6%, 0%, 51.4%)
CIE-LABlab(24.52, 39.18, -42.87)
CIE-LCHlch(24.52, 58.07, 312.43°)
OKLaboklab(36.66% 0.0781 -0.122)
OKLCHoklch(36.66% 0.145 302.6)
XYZxyz(7.4337, 4.2615, 19.4958)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F227C #4F7C22
analogous
#22227C #4F227C #7C227C
triadic
#4F227C #7C4F22 #227C4F
tetradic
#4F227C #7C2222 #4F7C22 #227C7C
square
#4F227C #7C2222 #4F7C22 #227C7C
split-complementary
#4F227C #7C7C22 #227C22
monochromatic
#12081C #30154C #4F227C #6E2FAC #8C4BCE

Accessibility & contrast

On white

11.34
#4F227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F227C
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F227C#FFFFFF#000000##FFFFFF
##4F227C1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f227c;
/* rgb */ color: rgb(79, 34, 124);
/* oklch */ color: oklch(36.7% 0.145 302.6);
Tailwind
colors: {
  custom: {
    50: '#8561a3',
    500: '#4f227c',
    950: '#000000',
  },
}
SCSS
$custom: #4f227c;
$custom-light: #8561a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f227c",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 270,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36664,
    "c": 0.1449,
    "h": 302.6
  },
  "luminance": 0.04262
}

Semantic roles & 50–950 ramp

primary
#4F227C
secondary
#7DAF4B
accent
#E04894
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F227C

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

Preview Lab → · Contrast checker → · Palette generator →

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