#4F226C#4F226C

#4F226C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.126 H 309.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#4F226C
RGBrgb(79, 34, 108)
HSLhsl(276, 52%, 28%)
HSVhsv(276, 69%, 42%)
CMYKcmyk(26.9%, 68.5%, 0%, 57.6%)
CIE-LABlab(23.30, 35.10, -34.59)
CIE-LCHlch(23.30, 49.28, 315.42°)
OKLaboklab(35.41% 0.0801 -0.0977)
OKLCHoklch(35.41% 0.126 309.4)
XYZxyz(6.5027, 3.8891, 14.5926)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F226C #3F6C22
analogous
#2A226C #4F226C #6C2264
triadic
#4F226C #6C4F22 #226C4F
tetradic
#4F226C #6C2A22 #3F6C22 #22646C
square
#4F226C #6C2A22 #3F6C22 #22646C
split-complementary
#4F226C #646C22 #226C2A
monochromatic
#110717 #2D133D #4F226C #71319B #9244C4

Accessibility & contrast

On white

11.81
#4F226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4F226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F226C
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F226C#FFFFFF#000000##FFFFFF
##4F226C1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366E
Deuteranopia (green-blind)
#17386A
Tritanopia (blue-blind)
#4B3144
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f226c;
/* rgb */ color: rgb(79, 34, 108);
/* oklch */ color: oklch(35.4% 0.126 309.4);
Tailwind
colors: {
  custom: {
    50: '#836097',
    500: '#4f226c',
    950: '#000000',
  },
}
SCSS
$custom: #4f226c;
$custom-light: #836097;
$custom-dark: #000000;
JSON
{
  "hex": "#4f226c",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 276.486,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35408,
    "c": 0.12634,
    "h": 309.4
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#4F226C
secondary
#6CA04A
accent
#DC4C84
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4F226C

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

Preview Lab → · Contrast checker → · Palette generator →

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