#4F229C#4F229C

#4F229C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.181 H 292.9°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#4F229C
RGBrgb(79, 34, 156)
HSLhsl(262, 64%, 37%)
HSVhsv(262, 78%, 61%)
CMYKcmyk(49.4%, 78.2%, 0%, 38.8%)
CIE-LABlab(27.31, 47.72, -58.20)
CIE-LCHlch(27.31, 75.27, 309.35°)
OKLaboklab(39.5% 0.0705 -0.167)
OKLCHoklch(39.5% 0.181 292.9)
XYZxyz(9.7956, 5.2063, 31.9348)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F229C #6F9C22
analogous
#22329C #4F229C #8C229C
triadic
#4F229C #9C4F22 #229C4F
tetradic
#4F229C #9C2232 #6F9C22 #229C8C
square
#4F229C #9C2232 #6F9C22 #229C8C
split-complementary
#4F229C #9C8C22 #329C22
monochromatic
#1C0C38 #36176A #4F229C #682DCE #8C5DDC

Accessibility & contrast

On white

10.29
#4F229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F229C
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F229C#FFFFFF#000000##FFFFFF
##4F229C1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003E9A
Tritanopia (blue-blind)
#36445E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f229c;
/* rgb */ color: rgb(79, 34, 156);
/* oklch */ color: oklch(39.5% 0.181 292.9);
Tailwind
colors: {
  custom: {
    50: '#8963ba',
    500: '#4f229c',
    950: '#000000',
  },
}
SCSS
$custom: #4f229c;
$custom-light: #8963ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4f229c",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 262.131,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39502,
    "c": 0.18131,
    "h": 292.9
  },
  "luminance": 0.05207
}

Semantic roles & 50–950 ramp

primary
#4F229C
secondary
#9AC05A
accent
#E741AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4F229C

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

Preview Lab → · Contrast checker → · Palette generator →

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