#45298E#45298E

#45298E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.157 H 289.5°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#45298E
RGBrgb(69, 41, 142)
HSLhsl(257, 55%, 36%)
HSVhsv(257, 71%, 56%)
CMYKcmyk(51.4%, 71.1%, 0%, 44.3%)
CIE-LABlab(26.17, 38.53, -51.51)
CIE-LCHlch(26.17, 64.33, 306.80°)
OKLaboklab(38.04% 0.0524 -0.1478)
OKLCHoklch(38.04% 0.157 289.5)
XYZxyz(8.1283, 4.8037, 26.0849)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45298E #728E29
analogous
#293F8E #45298E #77298E
triadic
#45298E #8E4529 #298E45
tetradic
#45298E #8E293F #728E29 #298E77
square
#45298E #8E293F #728E29 #298E77
split-complementary
#45298E #8E7729 #3F8E29
monochromatic
#170E2F #2E1B5F #45298E #5C37BD #8060D1

Accessibility & contrast

On white

10.71
#45298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#45298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45298E
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45298E#FFFFFF#000000##FFFFFF
##45298E1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#2B4358
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #45298e;
/* rgb */ color: rgb(69, 41, 142);
/* oklch */ color: oklch(38.0% 0.157 289.5);
Tailwind
colors: {
  custom: {
    50: '#8065b0',
    500: '#45298e',
    950: '#000000',
  },
}
SCSS
$custom: #45298e;
$custom-light: #8065b0;
$custom-dark: #000000;
JSON
{
  "hex": "#45298e",
  "rgb": {
    "r": 69,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 256.634,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38039,
    "c": 0.15682,
    "h": 289.5
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#45298E
secondary
#9EB75C
accent
#DF49B5
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #45298E

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

Preview Lab → · Contrast checker → · Palette generator →

#45298E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva