#4F228B#4F228B

#4F228B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.162 H 297.6°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4F228B
RGBrgb(79, 34, 139)
HSLhsl(266, 61%, 34%)
HSVhsv(266, 76%, 55%)
CMYKcmyk(43.2%, 75.5%, 0%, 45.5%)
CIE-LABlab(25.77, 43.15, -50.24)
CIE-LCHlch(25.77, 66.23, 310.65°)
OKLaboklab(37.95% 0.075 -0.1437)
OKLCHoklch(37.95% 0.162 297.6)
XYZxyz(8.4555, 4.6702, 24.8771)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F228B #5E8B22
analogous
#222A8B #4F228B #84228B
triadic
#4F228B #8B4F22 #228B4F
tetradic
#4F228B #8B222A #5E8B22 #228B84
square
#4F228B #8B222A #5E8B22 #228B84
split-complementary
#4F228B #8B8422 #2A8B22
monochromatic
#170A29 #33165A #4F228B #6B2EBC #8A53D5

Accessibility & contrast

On white

10.86
#4F228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F228B
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F228B#FFFFFF#000000##FFFFFF
##4F228B1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#403D55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f228b;
/* rgb */ color: rgb(79, 34, 139);
/* oklch */ color: oklch(37.9% 0.162 297.6);
Tailwind
colors: {
  custom: {
    50: '#8662ae',
    500: '#4f228b',
    950: '#000000',
  },
}
SCSS
$custom: #4f228b;
$custom-light: #8662ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f228b",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 265.714,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37947,
    "c": 0.16211,
    "h": 297.6
  },
  "luminance": 0.0467
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F228B

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

Preview Lab → · Contrast checker → · Palette generator →

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