#9245D7#9245D7

#9245D7 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.0% C 0.214 H 304.5°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9245D7
RGBrgb(146, 69, 215)
HSLhsl(272, 65%, 56%)
HSVhsv(272, 68%, 84%)
CMYKcmyk(32.1%, 67.9%, 0%, 15.7%)
CIE-LABlab(46.01, 58.32, -62.22)
CIE-LCHlch(46.01, 85.28, 313.15°)
OKLaboklab(56.02% 0.1213 -0.1767)
OKLCHoklch(56.02% 0.214 304.5)
XYZxyz(26.2452, 15.2736, 65.8423)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9245D7 #8AD745
analogous
#4945D7 #9245D7 #D745D3
triadic
#9245D7 #D79245 #45D792
tetradic
#9245D7 #D74945 #8AD745 #45D3D7
square
#9245D7 #D74945 #8AD745 #45D3D7
split-complementary
#9245D7 #D3D745 #45D749
monochromatic
#541D85 #7327B7 #9245D7 #B077E2 #CDAAED

Accessibility & contrast

On white

5.18
#9245D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9245D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9245D7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9245D7#FFFFFF#000000##FFFFFF
##9245D71.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#066DD4
Tritanopia (blue-blind)
#856689
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9245d7;
/* rgb */ color: rgb(146, 69, 215);
/* oklch */ color: oklch(56.0% 0.214 304.5);
Tailwind
colors: {
  custom: {
    50: '#b77ee4',
    500: '#9245d7',
    950: '#000000',
  },
}
SCSS
$custom: #9245d7;
$custom-light: #b77ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#9245d7",
  "rgb": {
    "r": 146,
    "g": 69,
    "b": 215
  },
  "hsl": {
    "h": 271.644,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56023,
    "c": 0.21438,
    "h": 304.5
  },
  "luminance": 0.15274
}

Semantic roles & 50–950 ramp

primary
#9245D7
secondary
#BADA9E
accent
#E8408F
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9245D7

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

Preview Lab → · Contrast checker → · Palette generator →

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