#4D229B#4D229B

#4D229B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.180 H 292.1°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#4D229B
RGBrgb(77, 34, 155)
HSLhsl(261, 64%, 37%)
HSVhsv(261, 78%, 61%)
CMYKcmyk(50.3%, 78.1%, 0%, 39.2%)
CIE-LABlab(26.98, 47.15, -58.14)
CIE-LCHlch(26.98, 74.86, 309.04°)
OKLaboklab(39.19% 0.0677 -0.1669)
OKLCHoklch(39.19% 0.18 292.1)
XYZxyz(9.5473, 5.0880, 31.4830)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D229B #709B22
analogous
#22349B #4D229B #89229B
triadic
#4D229B #9B4D22 #229B4D
tetradic
#4D229B #9B2234 #709B22 #229B89
square
#4D229B #9B2234 #709B22 #229B89
split-complementary
#4D229B #9B8922 #349B22
monochromatic
#1B0C37 #341769 #4D229B #662DCD #895CDB

Accessibility & contrast

On white

10.41
#4D229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D229B
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D229B#FFFFFF#000000##FFFFFF
##4D229B1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#33445E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4d229b;
/* rgb */ color: rgb(77, 34, 155);
/* oklch */ color: oklch(39.2% 0.180 292.1);
Tailwind
colors: {
  custom: {
    50: '#8762ba',
    500: '#4d229b',
    950: '#000000',
  },
}
SCSS
$custom: #4d229b;
$custom-light: #8762ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4d229b",
  "rgb": {
    "r": 77,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 261.322,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39188,
    "c": 0.18014,
    "h": 292.1
  },
  "luminance": 0.05088
}

Semantic roles & 50–950 ramp

primary
#4D229B
secondary
#9BC059
accent
#E741AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4D229B

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

Preview Lab → · Contrast checker → · Palette generator →

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