#45247E#45247E

#45247E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.143 H 295.0°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#45247E
RGBrgb(69, 36, 126)
HSLhsl(262, 56%, 32%)
HSVhsv(262, 71%, 49%)
CMYKcmyk(45.2%, 71.4%, 0%, 50.6%)
CIE-LABlab(23.78, 36.61, -45.39)
CIE-LCHlch(23.78, 58.31, 308.89°)
OKLaboklab(35.9% 0.0604 -0.1298)
OKLCHoklch(35.9% 0.143 295)
XYZxyz(6.8500, 4.0331, 20.1522)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45247E #5D7E24
analogous
#24307E #45247E #72247E
triadic
#45247E #7E4524 #247E45
tetradic
#45247E #7E2430 #5D7E24 #247E72
square
#45247E #7E2430 #5D7E24 #247E72
split-complementary
#45247E #7E7224 #307E24
monochromatic
#11091F #2B164E #45247E #5F32AE #7D50CD

Accessibility & contrast

On white

11.62
#45247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#45247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45247E
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45247E#FFFFFF#000000##FFFFFF
##45247E1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#353A4E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #45247e;
/* rgb */ color: rgb(69, 36, 126);
/* oklch */ color: oklch(35.9% 0.143 295.0);
Tailwind
colors: {
  custom: {
    50: '#7e61a4',
    500: '#45247e',
    950: '#000000',
  },
}
SCSS
$custom: #45247e;
$custom-light: #7e61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#45247e",
  "rgb": {
    "r": 69,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 262,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35904,
    "c": 0.14319,
    "h": 295
  },
  "luminance": 0.04033
}

Semantic roles & 50–950 ramp

primary
#45247E
secondary
#8CB04E
accent
#DF49A8
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45247E

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

Preview Lab → · Contrast checker → · Palette generator →

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