#4B229B#4B229B

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

Color values

HEX#4B229B
RGBrgb(75, 34, 155)
HSLhsl(260, 64%, 37%)
HSVhsv(260, 78%, 61%)
CMYKcmyk(51.6%, 78.1%, 0%, 39.2%)
CIE-LABlab(26.75, 46.85, -58.53)
CIE-LCHlch(26.75, 74.97, 308.68°)
OKLaboklab(38.97% 0.0645 -0.1681)
OKLCHoklch(38.97% 0.18 291)
XYZxyz(9.3884, 5.0061, 31.4756)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B229B #729B22
analogous
#22359B #4B229B #88229B
triadic
#4B229B #9B4B22 #229B4B
tetradic
#4B229B #9B2235 #729B22 #229B88
square
#4B229B #9B2235 #729B22 #229B88
split-complementary
#4B229B #9B8822 #359B22
monochromatic
#1A0C37 #331769 #4B229B #632DCD #875CDB

Accessibility & contrast

On white

10.49
#4B229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4B229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B229B
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B229B#FFFFFF#000000##FFFFFF
##4B229B1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b229b;
/* rgb */ color: rgb(75, 34, 155);
/* oklch */ color: oklch(39.0% 0.180 291.0);
Tailwind
colors: {
  custom: {
    50: '#8662ba',
    500: '#4b229b',
    950: '#000000',
  },
}
SCSS
$custom: #4b229b;
$custom-light: #8662ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4b229b",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 260.331,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38973,
    "c": 0.18011,
    "h": 291
  },
  "luminance": 0.05006
}

Semantic roles & 50–950 ramp

primary
#4B229B
secondary
#9DC059
accent
#E741AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4B229B

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

Preview Lab → · Contrast checker → · Palette generator →

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