#4F228D#4F228D

#4F228D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.164 H 297.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4F228D
RGBrgb(79, 34, 141)
HSLhsl(265, 61%, 34%)
HSVhsv(265, 76%, 55%)
CMYKcmyk(44%, 75.9%, 0%, 44.7%)
CIE-LABlab(25.95, 43.68, -51.20)
CIE-LCHlch(25.95, 67.30, 310.47°)
OKLaboklab(38.12% 0.0746 -0.1465)
OKLCHoklch(38.12% 0.164 297)
XYZxyz(8.6029, 4.7292, 25.6537)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F228D #608D22
analogous
#222A8D #4F228D #85228D
triadic
#4F228D #8D4F22 #228D4F
tetradic
#4F228D #8D222A #608D22 #228D85
square
#4F228D #8D222A #608D22 #228D85
split-complementary
#4F228D #8D8522 #2A8D22
monochromatic
#180A2A #33165C #4F228D #6B2EBE #8A54D6

Accessibility & contrast

On white

10.79
#4F228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4F228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F228D
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F228D#FFFFFF#000000##FFFFFF
##4F228D1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#3F3E56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f228d;
/* rgb */ color: rgb(79, 34, 141);
/* oklch */ color: oklch(38.1% 0.164 297.0);
Tailwind
colors: {
  custom: {
    50: '#8762af',
    500: '#4f228d',
    950: '#000000',
  },
}
SCSS
$custom: #4f228d;
$custom-light: #8762af;
$custom-dark: #000000;
JSON
{
  "hex": "#4f228d",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 265.234,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38124,
    "c": 0.16439,
    "h": 297
  },
  "luminance": 0.04729
}

Semantic roles & 50–950 ramp

primary
#4F228D
secondary
#8EB951
accent
#E444A1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F228D

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

Preview Lab → · Contrast checker → · Palette generator →

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