#4F228E#4F228E

#4F228E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.166 H 296.7°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#4F228E
RGBrgb(79, 34, 142)
HSLhsl(265, 61%, 35%)
HSVhsv(265, 76%, 56%)
CMYKcmyk(44.4%, 76.1%, 0%, 44.3%)
CIE-LABlab(26.04, 43.95, -51.68)
CIE-LCHlch(26.04, 67.84, 310.38°)
OKLaboklab(38.21% 0.0743 -0.1479)
OKLCHoklch(38.21% 0.166 296.7)
XYZxyz(8.6777, 4.7591, 26.0473)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F228E #618E22
analogous
#222B8E #4F228E #85228E
triadic
#4F228E #8E4F22 #228E4F
tetradic
#4F228E #8E222B #618E22 #228E85
square
#4F228E #8E222B #618E22 #228E85
split-complementary
#4F228E #8E8522 #2B8E22
monochromatic
#180A2B #34165D #4F228E #6A2EBF #8A54D6

Accessibility & contrast

On white

10.76
#4F228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F228E
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F228E#FFFFFF#000000##FFFFFF
##4F228E1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#3E3E56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f228e;
/* rgb */ color: rgb(79, 34, 142);
/* oklch */ color: oklch(38.2% 0.166 296.7);
Tailwind
colors: {
  custom: {
    50: '#8762b0',
    500: '#4f228e',
    950: '#000000',
  },
}
SCSS
$custom: #4f228e;
$custom-light: #8762b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f228e",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 265,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38214,
    "c": 0.16552,
    "h": 296.7
  },
  "luminance": 0.04759
}

Semantic roles & 50–950 ramp

primary
#4F228E
secondary
#8FBA52
accent
#E443A1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F228E

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

Preview Lab → · Contrast checker → · Palette generator →

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