#4F228A#4F228A

#4F228A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.161 H 297.9°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#4F228A
RGBrgb(79, 34, 138)
HSLhsl(266, 60%, 34%)
HSVhsv(266, 75%, 54%)
CMYKcmyk(42.8%, 75.4%, 0%, 45.9%)
CIE-LABlab(25.69, 42.88, -49.76)
CIE-LCHlch(25.69, 65.69, 310.75°)
OKLaboklab(37.86% 0.0753 -0.1423)
OKLCHoklch(37.86% 0.161 297.9)
XYZxyz(8.3827, 4.6412, 24.4940)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F228A #5D8A22
analogous
#22298A #4F228A #83228A
triadic
#4F228A #8A4F22 #228A4F
tetradic
#4F228A #8A2229 #5D8A22 #228A83
square
#4F228A #8A2229 #5D8A22 #228A83
split-complementary
#4F228A #8A8322 #298A22
monochromatic
#170A28 #331659 #4F228A #6B2EBB #8A52D4

Accessibility & contrast

On white

10.89
#4F228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4F228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F228A
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F228A#FFFFFF#000000##FFFFFF
##4F228A1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#403D54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f228a;
/* rgb */ color: rgb(79, 34, 138);
/* oklch */ color: oklch(37.9% 0.161 297.9);
Tailwind
colors: {
  custom: {
    50: '#8662ad',
    500: '#4f228a',
    950: '#000000',
  },
}
SCSS
$custom: #4f228a;
$custom-light: #8662ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f228a",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 265.962,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37858,
    "c": 0.16097,
    "h": 297.9
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#4F228A
secondary
#8BB850
accent
#E4449F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F228A

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

Preview Lab → · Contrast checker → · Palette generator →

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