#45318D#45318D

#45318D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.2% C 0.145 H 287.8°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#45318D
RGBrgb(69, 49, 141)
HSLhsl(253, 48%, 37%)
HSVhsv(253, 65%, 55%)
CMYKcmyk(51.1%, 65.2%, 0%, 44.7%)
CIE-LABlab(27.80, 33.54, -48.23)
CIE-LCHlch(27.80, 58.75, 304.82°)
OKLaboklab(39.19% 0.0443 -0.1382)
OKLCHoklch(39.19% 0.145 287.8)
XYZxyz(8.3589, 5.3845, 25.7930)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45318D #798D31
analogous
#314B8D #45318D #73318D
triadic
#45318D #8D4531 #318D45
tetradic
#45318D #8D314B #798D31 #318D73
square
#45318D #8D314B #798D31 #318D73
split-complementary
#45318D #8D7331 #4B8D31
monochromatic
#191132 #2F2160 #45318D #5B41BA #816CCC

Accessibility & contrast

On white

10.11
#45318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#45318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45318D
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45318D#FFFFFF#000000##FFFFFF
##45318D1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#2C475A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #45318d;
/* rgb */ color: rgb(69, 49, 141);
/* oklch */ color: oklch(39.2% 0.145 287.8);
Tailwind
colors: {
  custom: {
    50: '#7f6aaf',
    500: '#45318d',
    950: '#000000',
  },
}
SCSS
$custom: #45318d;
$custom-light: #7f6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#45318d",
  "rgb": {
    "r": 69,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 253.043,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3919,
    "c": 0.1451,
    "h": 287.8
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#45318D
secondary
#A3B466
accent
#D850BA
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #45318D

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

Preview Lab → · Contrast checker → · Palette generator →

#45318D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva