#45256F#45256F

#45256F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.123 H 299.9°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#45256F
RGBrgb(69, 37, 111)
HSLhsl(266, 50%, 29%)
HSVhsv(266, 67%, 44%)
CMYKcmyk(37.8%, 66.7%, 0%, 56.5%)
CIE-LABlab(22.78, 31.76, -37.44)
CIE-LCHlch(22.78, 49.10, 310.31°)
OKLaboklab(34.8% 0.0613 -0.1064)
OKLCHoklch(34.8% 0.123 299.9)
XYZxyz(5.9844, 3.7360, 15.4417)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45256F #4F6F25
analogous
#252A6F #45256F #6A256F
triadic
#45256F #6F4525 #256F45
tetradic
#45256F #6F252A #4F6F25 #256F6A
square
#45256F #6F252A #4F6F25 #256F6A
split-complementary
#45256F #6F6A25 #2A6F25
monochromatic
#0E0817 #281641 #45256F #62349D #7F4BC3

Accessibility & contrast

On white

12.02
#45256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#45256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45256F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45256F#FFFFFF#000000##FFFFFF
##45256F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#05366D
Tritanopia (blue-blind)
#3C3546
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #45256f;
/* rgb */ color: rgb(69, 37, 111);
/* oklch */ color: oklch(34.8% 0.123 299.9);
Tailwind
colors: {
  custom: {
    50: '#7c6199',
    500: '#45256f',
    950: '#000000',
  },
}
SCSS
$custom: #45256f;
$custom-light: #7c6199;
$custom-dark: #000000;
JSON
{
  "hex": "#45256f",
  "rgb": {
    "r": 69,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 265.946,
    "s": 50,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34803,
    "c": 0.12282,
    "h": 299.9
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#45256F
secondary
#7EA24E
accent
#DA4E9D
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #45256F

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

Preview Lab → · Contrast checker → · Palette generator →

#45256F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva