#9245DB#9245DB

#9245DB is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.3% C 0.219 H 303.6°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9245DB
RGBrgb(146, 69, 219)
HSLhsl(271, 68%, 56%)
HSVhsv(271, 68%, 86%)
CMYKcmyk(33.3%, 68.5%, 0%, 14.1%)
CIE-LABlab(46.29, 59.25, -64.05)
CIE-LCHlch(46.29, 87.25, 312.77°)
OKLaboklab(56.31% 0.1208 -0.1821)
OKLCHoklch(56.31% 0.219 303.6)
XYZxyz(26.7654, 15.4817, 68.5823)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9245DB #8EDB45
analogous
#4745DB #9245DB #DB45D9
triadic
#9245DB #DB9245 #45DB92
tetradic
#9245DB #DB4745 #8EDB45 #45D9DB
square
#9245DB #DB4745 #8EDB45 #45D9DB
split-complementary
#9245DB #D9DB45 #45DB47
monochromatic
#541B8B #7325BE #9245DB #B078E5 #CEACEF

Accessibility & contrast

On white

5.13
#9245DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#9245DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9245DB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9245DB#FFFFFF#000000##FFFFFF
##9245DB1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#84688B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9245db;
/* rgb */ color: rgb(146, 69, 219);
/* oklch */ color: oklch(56.3% 0.219 303.6);
Tailwind
colors: {
  custom: {
    50: '#b77ee7',
    500: '#9245db',
    950: '#000000',
  },
}
SCSS
$custom: #9245db;
$custom-light: #b77ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#9245db",
  "rgb": {
    "r": 146,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 270.8,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56312,
    "c": 0.21856,
    "h": 303.6
  },
  "luminance": 0.15482
}

Semantic roles & 50–950 ramp

primary
#9245DB
secondary
#BDDD9F
accent
#EA3D92
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9245DB

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

Preview Lab → · Contrast checker → · Palette generator →

#9245DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva