#4F229F#4F229F

#4F229F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.185 H 292.1°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#4F229F
RGBrgb(79, 34, 159)
HSLhsl(262, 65%, 38%)
HSVhsv(262, 79%, 62%)
CMYKcmyk(50.3%, 78.6%, 0%, 37.6%)
CIE-LABlab(27.60, 48.53, -59.57)
CIE-LCHlch(27.60, 76.84, 309.17°)
OKLaboklab(39.79% 0.0696 -0.171)
OKLCHoklch(39.79% 0.185 292.1)
XYZxyz(10.0527, 5.3091, 33.2893)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F229F #729F22
analogous
#22339F #4F229F #8D229F
triadic
#4F229F #9F4F22 #229F4F
tetradic
#4F229F #9F2233 #729F22 #229F8D
square
#4F229F #9F2233 #729F22 #229F8D
split-complementary
#4F229F #9F8D22 #339F22
monochromatic
#1D0C3A #36176D #4F229F #682DD1 #8C5FDD

Accessibility & contrast

On white

10.18
#4F229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F229F
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F229F#FFFFFF#000000##FFFFFF
##4F229F1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#344560
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f229f;
/* rgb */ color: rgb(79, 34, 159);
/* oklch */ color: oklch(39.8% 0.185 292.1);
Tailwind
colors: {
  custom: {
    50: '#8963bc',
    500: '#4f229f',
    950: '#000000',
  },
}
SCSS
$custom: #4f229f;
$custom-light: #8963bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4f229f",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 261.6,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39786,
    "c": 0.18466,
    "h": 292.1
  },
  "luminance": 0.0531
}

Semantic roles & 50–950 ramp

primary
#4F229F
secondary
#9DC15B
accent
#E840AB
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #4F229F

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

Preview Lab → · Contrast checker → · Palette generator →

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