#4F229B#4F229B

#4F229B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.180 H 293.1°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#4F229B
RGBrgb(79, 34, 155)
HSLhsl(262, 64%, 37%)
HSVhsv(262, 78%, 61%)
CMYKcmyk(49%, 78.1%, 0%, 39.2%)
CIE-LABlab(27.22, 47.45, -57.74)
CIE-LCHlch(27.22, 74.74, 309.41°)
OKLaboklab(39.41% 0.0708 -0.1657)
OKLCHoklch(39.41% 0.18 293.1)
XYZxyz(9.7112, 5.1726, 31.4907)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F229B #6E9B22
analogous
#22329B #4F229B #8C229B
triadic
#4F229B #9B4F22 #229B4F
tetradic
#4F229B #9B2232 #6E9B22 #229B8C
square
#4F229B #9B2232 #6E9B22 #229B8C
split-complementary
#4F229B #9B8C22 #329B22
monochromatic
#1C0C37 #351769 #4F229B #692DCD #8B5CDB

Accessibility & contrast

On white

10.32
#4F229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4F229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F229B
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F229B#FFFFFF#000000##FFFFFF
##4F229B1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#37445E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f229b;
/* rgb */ color: rgb(79, 34, 155);
/* oklch */ color: oklch(39.4% 0.180 293.1);
Tailwind
colors: {
  custom: {
    50: '#8863ba',
    500: '#4f229b',
    950: '#000000',
  },
}
SCSS
$custom: #4f229b;
$custom-light: #8863ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4f229b",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 262.314,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39408,
    "c": 0.18019,
    "h": 293.1
  },
  "luminance": 0.05173
}

Semantic roles & 50–950 ramp

primary
#4F229B
secondary
#9AC059
accent
#E741A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4F229B

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

Preview Lab → · Contrast checker → · Palette generator →

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