#4B309C#4B309C

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

Color values

HEX#4B309C
RGBrgb(75, 48, 156)
HSLhsl(255, 53%, 40%)
HSVhsv(255, 69%, 61%)
CMYKcmyk(51.9%, 69.2%, 0%, 38.8%)
CIE-LABlab(29.44, 39.86, -54.75)
CIE-LCHlch(29.44, 67.72, 306.06°)
OKLaboklab(40.9% 0.052 -0.1571)
OKLCHoklch(40.9% 0.166 288.3)
XYZxyz(9.9576, 6.0096, 32.0813)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B309C #819C30
analogous
#304B9C #4B309C #81309C
triadic
#4B309C #9C4B30 #309C4B
tetradic
#4B309C #9C304B #819C30 #309C81
square
#4B309C #9C304B #819C30 #309C81
split-complementary
#4B309C #9C8130 #4B9C30
monochromatic
#1E133E #35226D #4B309C #6444C5 #8B73D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4B309C#FFFFFF#000000##FFFFFF
##4B309C1.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)
#00489F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#2D4B62
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4b309c;
/* rgb */ color: rgb(75, 48, 156);
/* oklch */ color: oklch(40.9% 0.166 288.3);
Tailwind
colors: {
  custom: {
    50: '#856aba',
    500: '#4b309c',
    950: '#000000',
  },
}
SCSS
$custom: #4b309c;
$custom-light: #856aba;
$custom-dark: #000000;
JSON
{
  "hex": "#4b309c",
  "rgb": {
    "r": 75,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 255,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.40901,
    "c": 0.1655,
    "h": 288.3
  },
  "luminance": 0.0601
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4B309C

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

Preview Lab → · Contrast checker → · Palette generator →

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