#4F226E#4F226E

#4F226E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.129 H 308.4°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4F226E
RGBrgb(79, 34, 110)
HSLhsl(276, 53%, 28%)
HSVhsv(276, 69%, 43%)
CMYKcmyk(28.2%, 69.1%, 0%, 56.9%)
CIE-LABlab(23.45, 35.59, -35.65)
CIE-LCHlch(23.45, 50.38, 314.96°)
OKLaboklab(35.56% 0.0799 -0.1008)
OKLCHoklch(35.56% 0.129 308.4)
XYZxyz(6.6104, 3.9322, 15.1596)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F226E #416E22
analogous
#29226E #4F226E #6E2267
triadic
#4F226E #6E4F22 #226E4F
tetradic
#4F226E #6E2922 #416E22 #22676E
square
#4F226E #6E2922 #416E22 #22676E
split-complementary
#4F226E #676E22 #226E29
monochromatic
#110717 #2D143F #4F226E #71309D #9145C5

Accessibility & contrast

On white

11.76
#4F226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4F226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F226E
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F226E#FFFFFF#000000##FFFFFF
##4F226E1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#14386C
Tritanopia (blue-blind)
#4A3245
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f226e;
/* rgb */ color: rgb(79, 34, 110);
/* oklch */ color: oklch(35.6% 0.129 308.4);
Tailwind
colors: {
  custom: {
    50: '#836098',
    500: '#4f226e',
    950: '#000000',
  },
}
SCSS
$custom: #4f226e;
$custom-light: #836098;
$custom-dark: #000000;
JSON
{
  "hex": "#4f226e",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 275.526,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35558,
    "c": 0.12866,
    "h": 308.4
  },
  "luminance": 0.03932
}

Semantic roles & 50–950 ramp

primary
#4F226E
secondary
#6EA14A
accent
#DC4C87
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4F226E

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

Preview Lab → · Contrast checker → · Palette generator →

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