#4A229B#4A229B

#4A229B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.180 H 290.5°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#4A229B
RGBrgb(74, 34, 155)
HSLhsl(260, 64%, 37%)
HSVhsv(260, 78%, 61%)
CMYKcmyk(52.3%, 78.1%, 0%, 39.2%)
CIE-LABlab(26.64, 46.71, -58.72)
CIE-LCHlch(26.64, 75.03, 308.50°)
OKLaboklab(38.87% 0.063 -0.1687)
OKLCHoklch(38.87% 0.18 290.5)
XYZxyz(9.3108, 4.9661, 31.4719)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A229B #739B22
analogous
#22369B #4A229B #87229B
triadic
#4A229B #9B4A22 #229B4A
tetradic
#4A229B #9B2236 #739B22 #229B87
square
#4A229B #9B2236 #739B22 #229B87
split-complementary
#4A229B #9B8722 #369B22
monochromatic
#1A0C37 #321769 #4A229B #622DCD #865CDB

Accessibility & contrast

On white

10.54
#4A229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4A229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A229B
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A229B#FFFFFF#000000##FFFFFF
##4A229B1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#2D445E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a229b;
/* rgb */ color: rgb(74, 34, 155);
/* oklch */ color: oklch(38.9% 0.180 290.5);
Tailwind
colors: {
  custom: {
    50: '#8662ba',
    500: '#4a229b',
    950: '#000000',
  },
}
SCSS
$custom: #4a229b;
$custom-light: #8662ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4a229b",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 259.835,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38866,
    "c": 0.18012,
    "h": 290.5
  },
  "luminance": 0.04966
}

Semantic roles & 50–950 ramp

primary
#4A229B
secondary
#9EC059
accent
#E741B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4A229B

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

Preview Lab → · Contrast checker → · Palette generator →

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