#4F229E#4F229E

#4F229E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.184 H 292.4°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#4F229E
RGBrgb(79, 34, 158)
HSLhsl(262, 65%, 38%)
HSVhsv(262, 78%, 62%)
CMYKcmyk(50%, 78.5%, 0%, 38%)
CIE-LABlab(27.50, 48.26, -59.11)
CIE-LCHlch(27.50, 76.31, 309.23°)
OKLaboklab(39.69% 0.0699 -0.1697)
OKLCHoklch(39.69% 0.184 292.4)
XYZxyz(9.9663, 5.2746, 32.8341)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F229E #719E22
analogous
#22339E #4F229E #8D229E
triadic
#4F229E #9E4F22 #229E4F
tetradic
#4F229E #9E2233 #719E22 #229E8D
square
#4F229E #9E2233 #719E22 #229E8D
split-complementary
#4F229E #9E8D22 #339E22
monochromatic
#1D0C39 #36176C #4F229E #682DD0 #8C5EDC

Accessibility & contrast

On white

10.22
#4F229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4F229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F229E
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F229E#FFFFFF#000000##FFFFFF
##4F229E1.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#003E9C
Tritanopia (blue-blind)
#35455F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f229e;
/* rgb */ color: rgb(79, 34, 158);
/* oklch */ color: oklch(39.7% 0.184 292.4);
Tailwind
colors: {
  custom: {
    50: '#8963bc',
    500: '#4f229e',
    950: '#000000',
  },
}
SCSS
$custom: #4f229e;
$custom-light: #8963bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f229e",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 261.774,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39691,
    "c": 0.18354,
    "h": 292.4
  },
  "luminance": 0.05275
}

Semantic roles & 50–950 ramp

primary
#4F229E
secondary
#9CC15B
accent
#E840AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4F229E

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

Preview Lab → · Contrast checker → · Palette generator →

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