#4F229D#4F229D

#4F229D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.182 H 292.6°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4F229D
RGBrgb(79, 34, 157)
HSLhsl(262, 64%, 37%)
HSVhsv(262, 78%, 62%)
CMYKcmyk(49.7%, 78.3%, 0%, 38.4%)
CIE-LABlab(27.41, 47.99, -58.66)
CIE-LCHlch(27.41, 75.79, 309.29°)
OKLaboklab(39.6% 0.0702 -0.1684)
OKLCHoklch(39.6% 0.182 292.6)
XYZxyz(9.8806, 5.2403, 32.3826)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F229D #709D22
analogous
#22339D #4F229D #8C229D
triadic
#4F229D #9D4F22 #229D4F
tetradic
#4F229D #9D2233 #709D22 #229D8C
square
#4F229D #9D2233 #709D22 #229D8C
split-complementary
#4F229D #9D8C22 #339D22
monochromatic
#1C0C38 #36176B #4F229D #682DCF #8C5DDC

Accessibility & contrast

On white

10.25
#4F229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4F229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F229D
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F229D#FFFFFF#000000##FFFFFF
##4F229D1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#36445F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f229d;
/* rgb */ color: rgb(79, 34, 157);
/* oklch */ color: oklch(39.6% 0.182 292.6);
Tailwind
colors: {
  custom: {
    50: '#8963bb',
    500: '#4f229d',
    950: '#000000',
  },
}
SCSS
$custom: #4f229d;
$custom-light: #8963bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f229d",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 261.951,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39596,
    "c": 0.18243,
    "h": 292.6
  },
  "luminance": 0.05241
}

Semantic roles & 50–950 ramp

primary
#4F229D
secondary
#9BC15A
accent
#E740AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4F229D

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

Preview Lab → · Contrast checker → · Palette generator →

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