#9257CA#9257CA

#9257CA is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.6% C 0.175 H 305.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#9257CA
RGBrgb(146, 87, 202)
HSLhsl(271, 52%, 57%)
HSVhsv(271, 57%, 79%)
CMYKcmyk(27.7%, 56.9%, 0%, 20.8%)
CIE-LABlab(48.50, 46.22, -50.75)
CIE-LCHlch(48.50, 68.64, 312.33°)
OKLaboklab(57.56% 0.1011 -0.1431)
OKLCHoklch(57.56% 0.175 305.2)
XYZxyz(25.9206, 17.1918, 57.8185)
Luminance0.1719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9257CA #8FCA57
analogous
#5957CA #9257CA #CA57C8
triadic
#9257CA #CA9257 #57CA92
tetradic
#9257CA #CA5957 #8FCA57 #57C8CA
square
#9257CA #CA5957 #8FCA57 #57C8CA
split-complementary
#9257CA #C8CA57 #57CA59
monochromatic
#54287F #7337AD #9257CA #B086D9 #CEB4E7

Accessibility & contrast

On white

4.73
#9257CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#9257CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9257CA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9257CA#FFFFFF#000000##FFFFFF
##9257CA1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A71CE
Deuteranopia (green-blind)
#4173C7
Tritanopia (blue-blind)
#886D88
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9257ca;
/* rgb */ color: rgb(146, 87, 202);
/* oklch */ color: oklch(57.6% 0.175 305.2);
Tailwind
colors: {
  custom: {
    50: '#b589db',
    500: '#9257ca',
    950: '#000000',
  },
}
SCSS
$custom: #9257ca;
$custom-light: #b589db;
$custom-dark: #000000;
JSON
{
  "hex": "#9257ca",
  "rgb": {
    "r": 146,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 270.783,
    "s": 52.036,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57563,
    "c": 0.17522,
    "h": 305.2
  },
  "luminance": 0.17192
}

Semantic roles & 50–950 ramp

primary
#9257CA
secondary
#BED6A7
accent
#DB4C92
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #9257CA

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

Preview Lab → · Contrast checker → · Palette generator →

#9257CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva