#4B229E#4B229E

#4B229E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.184 H 290.3°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#4B229E
RGBrgb(75, 34, 158)
HSLhsl(260, 65%, 38%)
HSVhsv(260, 78%, 62%)
CMYKcmyk(52.5%, 78.5%, 0%, 38%)
CIE-LABlab(27.04, 47.68, -59.89)
CIE-LCHlch(27.04, 76.55, 308.53°)
OKLaboklab(39.26% 0.0636 -0.1721)
OKLCHoklch(39.26% 0.184 290.3)
XYZxyz(9.6435, 5.1081, 32.8190)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B229E #759E22
analogous
#22379E #4B229E #89229E
triadic
#4B229E #9E4B22 #229E4B
tetradic
#4B229E #9E2237 #759E22 #229E89
square
#4B229E #9E2237 #759E22 #229E89
split-complementary
#4B229E #9E8922 #379E22
monochromatic
#1B0C39 #33176C #4B229E #632DD0 #885EDC

Accessibility & contrast

On white

10.39
#4B229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4B229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B229E
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B229E#FFFFFF#000000##FFFFFF
##4B229E1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#2D455F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4b229e;
/* rgb */ color: rgb(75, 34, 158);
/* oklch */ color: oklch(39.3% 0.184 290.3);
Tailwind
colors: {
  custom: {
    50: '#8762bc',
    500: '#4b229e',
    950: '#000000',
  },
}
SCSS
$custom: #4b229e;
$custom-light: #8762bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4b229e",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 259.839,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39262,
    "c": 0.18352,
    "h": 290.3
  },
  "luminance": 0.05109
}

Semantic roles & 50–950 ramp

primary
#4B229E
secondary
#9FC15B
accent
#E840B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4B229E

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

Preview Lab → · Contrast checker → · Palette generator →

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