#4A309C#4A309C

#4A309C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.166 H 287.8°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#4A309C
RGBrgb(74, 48, 156)
HSLhsl(254, 53%, 40%)
HSVhsv(254, 69%, 61%)
CMYKcmyk(52.6%, 69.2%, 0%, 38.8%)
CIE-LABlab(29.34, 39.68, -54.91)
CIE-LCHlch(29.34, 67.75, 305.85°)
OKLaboklab(40.81% 0.0505 -0.1577)
OKLCHoklch(40.81% 0.166 287.8)
XYZxyz(9.8800, 5.9696, 32.0777)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A309C #829C30
analogous
#304C9C #4A309C #80309C
triadic
#4A309C #9C4A30 #309C4A
tetradic
#4A309C #9C304C #829C30 #309C80
square
#4A309C #9C304C #829C30 #309C80
split-complementary
#4A309C #9C8030 #4C9C30
monochromatic
#1E133E #34226D #4A309C #6344C5 #8A73D4

Accessibility & contrast

On white

9.57
#4A309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4A309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A309C
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A309C#FFFFFF#000000##FFFFFF
##4A309C1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#2B4B62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a309c;
/* rgb */ color: rgb(74, 48, 156);
/* oklch */ color: oklch(40.8% 0.166 287.8);
Tailwind
colors: {
  custom: {
    50: '#856aba',
    500: '#4a309c',
    950: '#000000',
  },
}
SCSS
$custom: #4a309c;
$custom-light: #856aba;
$custom-dark: #000000;
JSON
{
  "hex": "#4a309c",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 254.444,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.40805,
    "c": 0.16555,
    "h": 287.8
  },
  "luminance": 0.0597
}

Semantic roles & 50–950 ramp

primary
#4A309C
secondary
#A8BC6C
accent
#DC4BB9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4A309C

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

Preview Lab → · Contrast checker → · Palette generator →

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