#4F227D#4F227D

#4F227D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.146 H 302.3°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#4F227D
RGBrgb(79, 34, 125)
HSLhsl(270, 57%, 31%)
HSVhsv(270, 73%, 49%)
CMYKcmyk(36.8%, 72.8%, 0%, 51%)
CIE-LABlab(24.60, 39.44, -43.37)
CIE-LCHlch(24.60, 58.62, 312.28°)
OKLaboklab(36.75% 0.078 -0.1235)
OKLCHoklch(36.75% 0.146 302.3)
XYZxyz(7.4973, 4.2870, 19.8305)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F227D #507D22
analogous
#22227D #4F227D #7C227D
triadic
#4F227D #7D4F22 #227D4F
tetradic
#4F227D #7D2222 #507D22 #227D7C
square
#4F227D #7D2222 #507D22 #227D7C
split-complementary
#4F227D #7D7C22 #227D22
monochromatic
#12081D #31154D #4F227D #6D2FAD #8C4BCE

Accessibility & contrast

On white

11.31
#4F227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4F227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F227D
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F227D#FFFFFF#000000##FFFFFF
##4F227D1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#45384D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f227d;
/* rgb */ color: rgb(79, 34, 125);
/* oklch */ color: oklch(36.7% 0.146 302.3);
Tailwind
colors: {
  custom: {
    50: '#8561a3',
    500: '#4f227d',
    950: '#000000',
  },
}
SCSS
$custom: #4f227d;
$custom-light: #8561a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f227d",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 269.67,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36747,
    "c": 0.14605,
    "h": 302.3
  },
  "luminance": 0.04287
}

Semantic roles & 50–950 ramp

primary
#4F227D
secondary
#7EB04B
accent
#E04795
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F227D

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

Preview Lab → · Contrast checker → · Palette generator →

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