#4A309B#4A309B

#4A309B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.164 H 288.0°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#4A309B
RGBrgb(74, 48, 155)
HSLhsl(255, 53%, 40%)
HSVhsv(255, 69%, 61%)
CMYKcmyk(52.3%, 69%, 0%, 39.2%)
CIE-LABlab(29.25, 39.38, -54.45)
CIE-LCHlch(29.25, 67.20, 305.88°)
OKLaboklab(40.72% 0.0507 -0.1563)
OKLCHoklch(40.72% 0.164 288)
XYZxyz(9.7957, 5.9358, 31.6336)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A309B #819B30
analogous
#304C9B #4A309B #7F309B
triadic
#4A309B #9B4A30 #309B4A
tetradic
#4A309B #9B304C #819B30 #309B7F
square
#4A309B #9B304C #819B30 #309B7F
split-complementary
#4A309B #9B7F30 #4C9B30
monochromatic
#1D133E #34226C #4A309B #6343C5 #8A72D3

Accessibility & contrast

On white

9.60
#4A309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A309B
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A309B#FFFFFF#000000##FFFFFF
##4A309B1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#2C4B61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a309b;
/* rgb */ color: rgb(74, 48, 155);
/* oklch */ color: oklch(40.7% 0.164 288.0);
Tailwind
colors: {
  custom: {
    50: '#846ab9',
    500: '#4a309b',
    950: '#000000',
  },
}
SCSS
$custom: #4a309b;
$custom-light: #846ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a309b",
  "rgb": {
    "r": 74,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 254.579,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40717,
    "c": 0.16429,
    "h": 288
  },
  "luminance": 0.05936
}

Semantic roles & 50–950 ramp

primary
#4A309B
secondary
#A8BB6C
accent
#DC4CB9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A309B

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

Preview Lab → · Contrast checker → · Palette generator →

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