#4F228F#4F228F

#4F228F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.167 H 296.4°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#4F228F
RGBrgb(79, 34, 143)
HSLhsl(265, 62%, 35%)
HSVhsv(265, 76%, 56%)
CMYKcmyk(44.8%, 76.2%, 0%, 43.9%)
CIE-LABlab(26.13, 44.22, -52.15)
CIE-LCHlch(26.13, 68.37, 310.29°)
OKLaboklab(38.3% 0.074 -0.1493)
OKLCHoklch(38.3% 0.167 296.4)
XYZxyz(8.7531, 4.7893, 26.4445)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F228F #628F22
analogous
#222B8F #4F228F #86228F
triadic
#4F228F #8F4F22 #228F4F
tetradic
#4F228F #8F222B #628F22 #228F86
square
#4F228F #8F222B #628F22 #228F86
split-complementary
#4F228F #8F8622 #2B8F22
monochromatic
#180A2C #34165E #4F228F #6A2EC0 #8A55D7

Accessibility & contrast

On white

10.73
#4F228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4F228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F228F
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F228F#FFFFFF#000000##FFFFFF
##4F228F1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#3E3F57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f228f;
/* rgb */ color: rgb(79, 34, 143);
/* oklch */ color: oklch(38.3% 0.167 296.4);
Tailwind
colors: {
  custom: {
    50: '#8762b1',
    500: '#4f228f',
    950: '#000000',
  },
}
SCSS
$custom: #4f228f;
$custom-light: #8762b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f228f",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 264.771,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38303,
    "c": 0.16666,
    "h": 296.4
  },
  "luminance": 0.04789
}

Semantic roles & 50–950 ramp

primary
#4F228F
secondary
#8FBA52
accent
#E543A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F228F

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

Preview Lab → · Contrast checker → · Palette generator →

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