#4A2F83#4A2F83

#4A2F83 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.135 H 294.0°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#4A2F83
RGBrgb(74, 47, 131)
HSLhsl(259, 47%, 35%)
HSVhsv(259, 64%, 51%)
CMYKcmyk(43.5%, 64.1%, 0%, 48.6%)
CIE-LABlab(27.09, 32.79, -43.13)
CIE-LCHlch(27.09, 54.18, 307.24°)
OKLaboklab(38.55% 0.0547 -0.123)
OKLCHoklch(38.55% 0.135 294)
XYZxyz(7.9362, 5.1274, 22.0399)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2F83 #68832F
analogous
#2F3E83 #4A2F83 #742F83
triadic
#4A2F83 #834A2F #2F834A
tetradic
#4A2F83 #832F3E #68832F #2F8374
square
#4A2F83 #832F3E #68832F #2F8374
split-complementary
#4A2F83 #83742F #3E832F
monochromatic
#170F29 #311F56 #4A2F83 #633FB0 #8565C8

Accessibility & contrast

On white

10.37
#4A2F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4A2F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2F83
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2F83#FFFFFF#000000##FFFFFF
##4A2F831.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004186
Deuteranopia (green-blind)
#003F81
Tritanopia (blue-blind)
#3B4254
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a2f83;
/* rgb */ color: rgb(74, 47, 131);
/* oklch */ color: oklch(38.6% 0.135 294.0);
Tailwind
colors: {
  custom: {
    50: '#8169a8',
    500: '#4a2f83',
    950: '#000000',
  },
}
SCSS
$custom: #4a2f83;
$custom-light: #8169a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2f83",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 259.286,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38553,
    "c": 0.13462,
    "h": 294
  },
  "luminance": 0.05128
}

Semantic roles & 50–950 ramp

primary
#4A2F83
secondary
#95AF5F
accent
#D751AC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A2F83

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

Preview Lab → · Contrast checker → · Palette generator →

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