#9740B2#9740B2

#9740B2 is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.6% C 0.185 H 317.3°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#9740B2
RGBrgb(151, 64, 178)
HSLhsl(286, 47%, 47%)
HSVhsv(286, 64%, 70%)
CMYKcmyk(15.2%, 64%, 0%, 30.2%)
CIE-LABlab(43.45, 53.65, -44.82)
CIE-LCHlch(43.45, 69.91, 320.12°)
OKLaboklab(53.57% 0.1361 -0.1255)
OKLCHoklch(53.57% 0.185 317.3)
XYZxyz(22.6306, 13.4614, 43.5171)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9740B2 #5BB240
analogous
#5E40B2 #9740B2 #B24094
triadic
#9740B2 #B29740 #40B297
tetradic
#9740B2 #B25E40 #5BB240 #4094B2
square
#9740B2 #B25E40 #5BB240 #4094B2
split-complementary
#9740B2 #94B240 #40B25E
monochromatic
#4B2058 #713085 #9740B2 #B167C8 #C894D8

Accessibility & contrast

On white

5.69
#9740B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#9740B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9740B2
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9740B2#FFFFFF#000000##FFFFFF
##9740B21.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1961B5
Deuteranopia (green-blind)
#4369AF
Tritanopia (blue-blind)
#965473
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9740b2;
/* rgb */ color: rgb(151, 64, 178);
/* oklch */ color: oklch(53.6% 0.185 317.3);
Tailwind
colors: {
  custom: {
    50: '#b97bc9',
    500: '#9740b2',
    950: '#000000',
  },
}
SCSS
$custom: #9740b2;
$custom-light: #b97bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#9740b2",
  "rgb": {
    "r": 151,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 285.789,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53565,
    "c": 0.18512,
    "h": 317.3
  },
  "luminance": 0.1346
}

Semantic roles & 50–950 ramp

primary
#9740B2
secondary
#98C48A
accent
#D75171
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9740B2

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

Preview Lab → · Contrast checker → · Palette generator →

#9740B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva