#9178A2#9178A2

#9178A2 is a mid, moderate violet. Relative luminance 0.221; OKLCH L 61.1% C 0.068 H 311.3°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9178A2
RGBrgb(145, 120, 162)
HSLhsl(276, 18%, 55%)
HSVhsv(276, 26%, 64%)
CMYKcmyk(10.5%, 25.9%, 0%, 36.5%)
CIE-LABlab(54.09, 17.87, -18.87)
CIE-LCHlch(54.09, 25.99, 313.44°)
OKLaboklab(61.12% 0.0452 -0.0514)
OKLCHoklch(61.12% 0.068 311.3)
XYZxyz(24.9140, 22.0616, 37.1212)
Luminance0.2206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9178A2 #89A278
analogous
#7C78A2 #9178A2 #A2789E
triadic
#9178A2 #A29178 #78A291
tetradic
#9178A2 #A27C78 #89A278 #789EA2
square
#9178A2 #A27C78 #89A278 #789EA2
split-complementary
#9178A2 #9EA278 #78A27C
monochromatic
#53415E #725A83 #9178A2 #AF9CBB #CCC0D4

Accessibility & contrast

On white

3.88
#9178A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#9178A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9178A2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9178A2#FFFFFF#000000##000000
##9178A21.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7280A4
Deuteranopia (green-blind)
#7782A1
Tritanopia (blue-blind)
#8F7D87
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9178a2;
/* rgb */ color: rgb(145, 120, 162);
/* oklch */ color: oklch(61.1% 0.068 311.3);
Tailwind
colors: {
  custom: {
    50: '#b19fbd',
    500: '#9178a2',
    950: '#000000',
  },
}
SCSS
$custom: #9178a2;
$custom-light: #b19fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#9178a2",
  "rgb": {
    "r": 145,
    "g": 120,
    "b": 162
  },
  "hsl": {
    "h": 275.714,
    "s": 18.421,
    "l": 55.294
  },
  "oklch": {
    "l": 0.61119,
    "c": 0.06843,
    "h": 311.3
  },
  "luminance": 0.22061
}

Semantic roles & 50–950 ramp

primary
#9178A2
secondary
#B9C4B2
accent
#BB6D8C
background
#FAF9FB
surface
#F5F2F6
border
#CFCCD0
text
#110E12
muted
#807E81

Preview Lab

Preview with #9178A2

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

Preview Lab → · Contrast checker → · Palette generator →

#9178A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva