#4F228C#4F228C

#4F228C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.163 H 297.3°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#4F228C
RGBrgb(79, 34, 140)
HSLhsl(265, 61%, 34%)
HSVhsv(265, 76%, 55%)
CMYKcmyk(43.6%, 75.7%, 0%, 45.1%)
CIE-LABlab(25.86, 43.41, -50.72)
CIE-LCHlch(25.86, 66.76, 310.56°)
OKLaboklab(38.04% 0.0748 -0.1451)
OKLCHoklch(38.04% 0.163 297.3)
XYZxyz(8.5289, 4.6996, 25.2636)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F228C #5F8C22
analogous
#222A8C #4F228C #84228C
triadic
#4F228C #8C4F22 #228C4F
tetradic
#4F228C #8C222A #5F8C22 #228C84
square
#4F228C #8C222A #5F8C22 #228C84
split-complementary
#4F228C #8C8422 #2A8C22
monochromatic
#170A2A #33165B #4F228C #6B2EBD #8A53D5

Accessibility & contrast

On white

10.82
#4F228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4F228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F228C
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F228C#FFFFFF#000000##FFFFFF
##4F228C1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#3F3E55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f228c;
/* rgb */ color: rgb(79, 34, 140);
/* oklch */ color: oklch(38.0% 0.163 297.3);
Tailwind
colors: {
  custom: {
    50: '#8662ae',
    500: '#4f228c',
    950: '#000000',
  },
}
SCSS
$custom: #4f228c;
$custom-light: #8662ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f228c",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 265.472,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38035,
    "c": 0.16325,
    "h": 297.3
  },
  "luminance": 0.047
}

Semantic roles & 50–950 ramp

primary
#4F228C
secondary
#8DB951
accent
#E444A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F228C

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

Preview Lab → · Contrast checker → · Palette generator →

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