#7231A2#7231A2

#7231A2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.176 H 307.1°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7231A2
RGBrgb(114, 49, 162)
HSLhsl(275, 54%, 41%)
HSVhsv(275, 70%, 64%)
CMYKcmyk(29.6%, 69.8%, 0%, 36.5%)
CIE-LABlab(34.77, 48.69, -49.51)
CIE-LCHlch(34.77, 69.44, 314.53°)
OKLaboklab(45.91% 0.1062 -0.1404)
OKLCHoklch(45.91% 0.176 307.1)
XYZxyz(14.5579, 8.3828, 35.0265)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231A2 #61A231
analogous
#3931A2 #7231A2 #A2319A
triadic
#7231A2 #A27231 #31A272
tetradic
#7231A2 #A23931 #61A231 #319AA2
square
#7231A2 #A23931 #61A231 #319AA2
split-complementary
#7231A2 #9AA231 #31A239
monochromatic
#301544 #512373 #7231A2 #9248C8 #AE77D6

Accessibility & contrast

On white

7.85
#7231A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7231A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7231A2#FFFFFF#000000##FFFFFF
##7231A21.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#1252A0
Tritanopia (blue-blind)
#6A4A66
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7231a2;
/* rgb */ color: rgb(114, 49, 162);
/* oklch */ color: oklch(45.9% 0.176 307.1);
Tailwind
colors: {
  custom: {
    50: '#9f6ebe',
    500: '#7231a2',
    950: '#000000',
  },
}
SCSS
$custom: #7231a2;
$custom-light: #9f6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7231a2",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 274.513,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45912,
    "c": 0.176,
    "h": 307.1
  },
  "luminance": 0.08383
}

Semantic roles & 50–950 ramp

primary
#7231A2
secondary
#92BE71
accent
#DD4B89
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7231A2

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

Preview Lab → · Contrast checker → · Palette generator →

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