#4A309D#4A309D

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

Color values

HEX#4A309D
RGBrgb(74, 48, 157)
HSLhsl(254, 53%, 40%)
HSVhsv(254, 69%, 62%)
CMYKcmyk(52.9%, 69.4%, 0%, 38.4%)
CIE-LABlab(29.42, 39.98, -55.38)
CIE-LCHlch(29.42, 68.31, 305.83°)
OKLaboklab(40.89% 0.0504 -0.159)
OKLCHoklch(40.89% 0.167 287.6)
XYZxyz(9.9650, 6.0036, 32.5255)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A309D #839D30
analogous
#304C9D #4A309D #81309D
triadic
#4A309D #9D4A30 #309D4A
tetradic
#4A309D #9D304C #839D30 #309D81
square
#4A309D #9D304C #839D30 #309D81
split-complementary
#4A309D #9D8130 #4C9D30
monochromatic
#1E133F #34226E #4A309D #6344C6 #8A73D4

Accessibility & contrast

On white

9.54
#4A309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A309D
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A309D#FFFFFF#000000##FFFFFF
##4A309D1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#2A4C62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a309d;
/* rgb */ color: rgb(74, 48, 157);
/* oklch */ color: oklch(40.9% 0.167 287.6);
Tailwind
colors: {
  custom: {
    50: '#856abb',
    500: '#4a309d',
    950: '#000000',
  },
}
SCSS
$custom: #4a309d;
$custom-light: #856abb;
$custom-dark: #000000;
JSON
{
  "hex": "#4a309d",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 254.312,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40893,
    "c": 0.16682,
    "h": 287.6
  },
  "luminance": 0.06004
}

Semantic roles & 50–950 ramp

primary
#4A309D
secondary
#A9BC6D
accent
#DD4BBA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4A309D

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

Preview Lab → · Contrast checker → · Palette generator →

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