#45298C#45298C

#45298C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.154 H 290.0°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#45298C
RGBrgb(69, 41, 140)
HSLhsl(257, 55%, 35%)
HSVhsv(257, 71%, 55%)
CMYKcmyk(50.7%, 70.7%, 0%, 45.1%)
CIE-LABlab(25.99, 37.93, -50.56)
CIE-LCHlch(25.99, 63.20, 306.88°)
OKLaboklab(37.86% 0.0527 -0.145)
OKLCHoklch(37.86% 0.154 290)
XYZxyz(7.9794, 4.7442, 25.3011)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45298C #708C29
analogous
#293E8C #45298C #76298C
triadic
#45298C #8C4529 #298C45
tetradic
#45298C #8C293E #708C29 #298C76
square
#45298C #8C293E #708C29 #298C76
split-complementary
#45298C #8C7629 #3E8C29
monochromatic
#160D2D #2E1B5D #45298C #5C37BB #7F5FD0

Accessibility & contrast

On white

10.77
#45298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#45298C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45298C
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45298C#FFFFFF#000000##FFFFFF
##45298C1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#2D4257
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #45298c;
/* rgb */ color: rgb(69, 41, 140);
/* oklch */ color: oklch(37.9% 0.154 290.0);
Tailwind
colors: {
  custom: {
    50: '#8065ae',
    500: '#45298c',
    950: '#000000',
  },
}
SCSS
$custom: #45298c;
$custom-light: #8065ae;
$custom-dark: #000000;
JSON
{
  "hex": "#45298c",
  "rgb": {
    "r": 69,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 256.97,
    "s": 54.696,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37859,
    "c": 0.15431,
    "h": 290
  },
  "luminance": 0.04745
}

Semantic roles & 50–950 ramp

primary
#45298C
secondary
#9CB65B
accent
#DE4AB4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #45298C

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

Preview Lab → · Contrast checker → · Palette generator →

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