#7731B2#7731B2

#7731B2 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.7% C 0.194 H 304.8°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7731B2
RGBrgb(119, 49, 178)
HSLhsl(273, 57%, 45%)
HSVhsv(273, 72%, 70%)
CMYKcmyk(33.1%, 72.5%, 0%, 30.2%)
CIE-LABlab(36.62, 53.47, -56.05)
CIE-LCHlch(36.62, 77.46, 313.65°)
OKLaboklab(47.74% 0.1106 -0.1594)
OKLCHoklch(47.74% 0.194 304.8)
XYZxyz(16.7401, 9.3330, 43.0304)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7731B2 #6CB231
analogous
#3731B2 #7731B2 #B231AD
triadic
#7731B2 #B27731 #31B277
tetradic
#7731B2 #B23731 #6CB231 #31ADB2
square
#7731B2 #B23731 #6CB231 #31ADB2
split-complementary
#7731B2 #ADB231 #31B237
monochromatic
#371752 #572482 #7731B2 #9551CF #B381DC

Accessibility & contrast

On white

7.33
#7731B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7731B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7731B2
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7731B2#FFFFFF#000000##FFFFFF
##7731B21.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#6C506E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7731b2;
/* rgb */ color: rgb(119, 49, 178);
/* oklch */ color: oklch(47.7% 0.194 304.8);
Tailwind
colors: {
  custom: {
    50: '#a36fca',
    500: '#7731b2',
    950: '#000000',
  },
}
SCSS
$custom: #7731b2;
$custom-light: #a36fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7731b2",
  "rgb": {
    "r": 119,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 272.558,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47744,
    "c": 0.19405,
    "h": 304.8
  },
  "luminance": 0.09333
}

Semantic roles & 50–950 ramp

primary
#7731B2
secondary
#9CC579
accent
#E0488D
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7731B2

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

Preview Lab → · Contrast checker → · Palette generator →

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