#731EAF#731EAF

#731EAF is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.2% C 0.209 H 305.6°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#731EAF
RGBrgb(115, 30, 175)
HSLhsl(275, 71%, 40%)
HSVhsv(275, 83%, 69%)
CMYKcmyk(34.3%, 82.9%, 0%, 31.4%)
CIE-LABlab(33.28, 59.39, -59.72)
CIE-LCHlch(33.28, 84.22, 314.84°)
OKLaboklab(45.21% 0.1218 -0.1702)
OKLCHoklch(45.21% 0.209 305.6)
XYZxyz(15.2706, 7.6686, 41.2248)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731EAF #5AAF1E
analogous
#2A1EAF #731EAF #AF1EA3
triadic
#731EAF #AF731E #1EAF73
tetradic
#731EAF #AF2A1E #5AAF1E #1EA3AF
square
#731EAF #AF2A1E #5AAF1E #1EA3AF
split-complementary
#731EAF #A3AF1E #1EAF2A
monochromatic
#2E0C47 #51157B #731EAF #942FDB #AF63E4

Accessibility & contrast

On white

8.29
#731EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#731EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731EAF
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731EAF#FFFFFF#000000##FFFFFF
##731EAF1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#684669
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #731eaf;
/* rgb */ color: rgb(115, 30, 175);
/* oklch */ color: oklch(45.2% 0.209 305.6);
Tailwind
colors: {
  custom: {
    50: '#a166c8',
    500: '#731eaf',
    950: '#000000',
  },
}
SCSS
$custom: #731eaf;
$custom-light: #a166c8;
$custom-dark: #000000;
JSON
{
  "hex": "#731eaf",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 175
  },
  "hsl": {
    "h": 275.172,
    "s": 70.732,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45213,
    "c": 0.20931,
    "h": 305.6
  },
  "luminance": 0.07669
}

Semantic roles & 50–950 ramp

primary
#731EAF
secondary
#8BC960
accent
#ED3A84
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #731EAF

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

Preview Lab → · Contrast checker → · Palette generator →

#731EAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva