#9245E2#9245E2

#9245E2 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.8% C 0.226 H 302.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9245E2
RGBrgb(146, 69, 226)
HSLhsl(269, 73%, 58%)
HSVhsv(269, 69%, 89%)
CMYKcmyk(35.4%, 69.5%, 0%, 11.4%)
CIE-LABlab(46.79, 60.89, -67.22)
CIE-LCHlch(46.79, 90.70, 312.17°)
OKLaboklab(56.83% 0.1198 -0.1914)
OKLCHoklch(56.83% 0.226 302)
XYZxyz(27.7064, 15.8581, 73.5380)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9245E2 #95E245
analogous
#4546E2 #9245E2 #E145E2
triadic
#9245E2 #E29245 #45E292
tetradic
#9245E2 #E24546 #95E245 #45E2E1
square
#9245E2 #E24546 #95E245 #45E2E1
split-complementary
#9245E2 #E2E145 #46E245
monochromatic
#551795 #7320CA #9245E2 #B17AEA #D0AFF3

Accessibility & contrast

On white

5.03
#9245E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9245E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9245E2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9245E2#FFFFFF#000000##FFFFFF
##9245E21.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#006EDF
Tritanopia (blue-blind)
#816A8F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9245e2;
/* rgb */ color: rgb(146, 69, 226);
/* oklch */ color: oklch(56.8% 0.226 302.0);
Tailwind
colors: {
  custom: {
    50: '#b87fec',
    500: '#9245e2',
    950: '#000000',
  },
}
SCSS
$custom: #9245e2;
$custom-light: #b87fec;
$custom-dark: #000000;
JSON
{
  "hex": "#9245e2",
  "rgb": {
    "r": 146,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 269.427,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.56826,
    "c": 0.22583,
    "h": 302
  },
  "luminance": 0.15858
}

Semantic roles & 50–950 ramp

primary
#9245E2
secondary
#C2E1A2
accent
#F03896
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9245E2

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

Preview Lab → · Contrast checker → · Palette generator →

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