#4A2283#4A2283

#4A2283 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.152 H 297.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4A2283
RGBrgb(74, 34, 131)
HSLhsl(265, 59%, 32%)
HSVhsv(265, 74%, 51%)
CMYKcmyk(43.5%, 74%, 0%, 48.6%)
CIE-LABlab(24.44, 40.05, -47.43)
CIE-LCHlch(24.44, 62.08, 310.18°)
OKLaboklab(36.65% 0.0692 -0.1356)
OKLCHoklch(36.65% 0.152 297)
XYZxyz(7.4917, 4.2384, 21.8917)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2283 #5B8322
analogous
#222B83 #4A2283 #7A2283
triadic
#4A2283 #834A22 #22834A
tetradic
#4A2283 #83222B #5B8322 #22837A
square
#4A2283 #83222B #5B8322 #22837A
split-complementary
#4A2283 #837A22 #2B8322
monochromatic
#130922 #2F1552 #4A2283 #652FB4 #844ED1

Accessibility & contrast

On white

11.36
#4A2283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4A2283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2283
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2283#FFFFFF#000000##FFFFFF
##4A22831.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003981
Tritanopia (blue-blind)
#3B3B50
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a2283;
/* rgb */ color: rgb(74, 34, 131);
/* oklch */ color: oklch(36.6% 0.152 297.0);
Tailwind
colors: {
  custom: {
    50: '#8261a8',
    500: '#4a2283',
    950: '#000000',
  },
}
SCSS
$custom: #4a2283;
$custom-light: #8261a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2283",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 264.742,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36649,
    "c": 0.15226,
    "h": 297
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#4A2283
secondary
#8AB44C
accent
#E246A2
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A2283

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

Preview Lab → · Contrast checker → · Palette generator →

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