#45257C#45257C

#45257C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.139 H 295.3°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#45257C
RGBrgb(69, 37, 124)
HSLhsl(262, 54%, 32%)
HSVhsv(262, 70%, 49%)
CMYKcmyk(44.4%, 70.2%, 0%, 51.4%)
CIE-LABlab(23.81, 35.47, -44.07)
CIE-LCHlch(23.81, 56.57, 308.83°)
OKLaboklab(35.88% 0.0597 -0.1259)
OKLCHoklch(35.88% 0.139 295.3)
XYZxyz(6.7529, 4.0434, 19.4895)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45257C #5C7C25
analogous
#25317C #45257C #71257C
triadic
#45257C #7C4525 #257C45
tetradic
#45257C #7C2531 #5C7C25 #257C71
square
#45257C #7C2531 #5C7C25 #257C71
split-complementary
#45257C #7C7125 #317C25
monochromatic
#11091E #2B174D #45257C #5F33AB #7E50CB

Accessibility & contrast

On white

11.61
#45257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#45257C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45257C
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45257C#FFFFFF#000000##FFFFFF
##45257C1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#363A4D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #45257c;
/* rgb */ color: rgb(69, 37, 124);
/* oklch */ color: oklch(35.9% 0.139 295.3);
Tailwind
colors: {
  custom: {
    50: '#7e62a3',
    500: '#45257c',
    950: '#000000',
  },
}
SCSS
$custom: #45257c;
$custom-light: #7e62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#45257c",
  "rgb": {
    "r": 69,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 262.069,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35876,
    "c": 0.13936,
    "h": 295.3
  },
  "luminance": 0.04044
}

Semantic roles & 50–950 ramp

primary
#45257C
secondary
#8BAE4F
accent
#DD4AA7
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45257C

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

Preview Lab → · Contrast checker → · Palette generator →

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