#7231AA#7231AA

#7231AA is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.184 H 304.7°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7231AA
RGBrgb(114, 49, 170)
HSLhsl(272, 55%, 43%)
HSVhsv(272, 71%, 67%)
CMYKcmyk(32.9%, 71.2%, 0%, 33.3%)
CIE-LABlab(35.35, 50.59, -53.36)
CIE-LCHlch(35.35, 73.53, 313.47°)
OKLaboklab(46.52% 0.105 -0.1517)
OKLCHoklch(46.52% 0.185 304.7)
XYZxyz(15.2918, 8.6764, 38.8915)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231AA #69AA31
analogous
#3531AA #7231AA #AA31A5
triadic
#7231AA #AA7231 #31AA72
tetradic
#7231AA #AA3531 #69AA31 #31A5AA
square
#7231AA #AA3531 #69AA31 #31A5AA
split-complementary
#7231AA #A5AA31 #31AA35
monochromatic
#32164B #52237A #7231AA #914DCC #AE7CD9

Accessibility & contrast

On white

7.68
#7231AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7231AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231AA
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231AA#FFFFFF#000000##FFFFFF
##7231AA1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0053A7
Tritanopia (blue-blind)
#684D6A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7231aa;
/* rgb */ color: rgb(114, 49, 170);
/* oklch */ color: oklch(46.5% 0.184 304.7);
Tailwind
colors: {
  custom: {
    50: '#9f6fc4',
    500: '#7231aa',
    950: '#000000',
  },
}
SCSS
$custom: #7231aa;
$custom-light: #9f6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7231aa",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 272.231,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46515,
    "c": 0.1845,
    "h": 304.7
  },
  "luminance": 0.08676
}

Semantic roles & 50–950 ramp

primary
#7231AA
secondary
#99C275
accent
#DF498E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7231AA

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

Preview Lab → · Contrast checker → · Palette generator →

#7231AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva