#4A2F9F#4A2F9F

#4A2F9F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.171 H 287.4°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#4A2F9F
RGBrgb(74, 47, 159)
HSLhsl(254, 54%, 40%)
HSVhsv(254, 70%, 62%)
CMYKcmyk(53.5%, 70.4%, 0%, 37.6%)
CIE-LABlab(29.39, 41.15, -56.65)
CIE-LCHlch(29.39, 70.02, 305.99°)
OKLaboklab(40.92% 0.0509 -0.1627)
OKLCHoklch(40.92% 0.171 287.4)
XYZxyz(10.0967, 5.9916, 33.4186)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2F9F #849F2F
analogous
#2F4C9F #4A2F9F #822F9F
triadic
#4A2F9F #9F4A2F #2F9F4A
tetradic
#4A2F9F #9F2F4C #849F2F #2F9F82
square
#4A2F9F #9F2F4C #849F2F #2F9F82
split-complementary
#4A2F9F #9F822F #4C9F2F
monochromatic
#1E1341 #342170 #4A2F9F #6344C8 #8B73D6

Accessibility & contrast

On white

9.55
#4A2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4A2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2F9F
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2F9F#FFFFFF#000000##FFFFFF
##4A2F9F1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#294C63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a2f9f;
/* rgb */ color: rgb(74, 47, 159);
/* oklch */ color: oklch(40.9% 0.171 287.4);
Tailwind
colors: {
  custom: {
    50: '#856abc',
    500: '#4a2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #4a2f9f;
$custom-light: #856abc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2f9f",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 254.464,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40925,
    "c": 0.17053,
    "h": 287.4
  },
  "luminance": 0.05992
}

Semantic roles & 50–950 ramp

primary
#4A2F9F
secondary
#AABD6D
accent
#DE4ABA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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