#7231C5#7231C5

#7231C5 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.213 H 297.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7231C5
RGBrgb(114, 49, 197)
HSLhsl(266, 60%, 48%)
HSVhsv(266, 75%, 77%)
CMYKcmyk(42.1%, 75.1%, 0%, 22.7%)
CIE-LABlab(37.49, 57.17, -65.84)
CIE-LCHlch(37.49, 87.20, 310.97°)
OKLaboklab(48.69% 0.0995 -0.1884)
OKLCHoklch(48.69% 0.213 297.8)
XYZxyz(18.1132, 9.8049, 53.7507)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231C5 #84C531
analogous
#313AC5 #7231C5 #BC31C5
triadic
#7231C5 #C57231 #31C572
tetradic
#7231C5 #C5313A #84C531 #31C5BC
square
#7231C5 #C5313A #84C531 #31C5BC
split-complementary
#7231C5 #C5BC31 #3AC531
monochromatic
#391963 #562594 #7231C5 #925DD7 #B38EE3

Accessibility & contrast

On white

7.09
#7231C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7231C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7231C5#FFFFFF#000000##FFFFFF
##7231C51.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#5D5879
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7231c5;
/* rgb */ color: rgb(114, 49, 197);
/* oklch */ color: oklch(48.7% 0.213 297.8);
Tailwind
colors: {
  custom: {
    50: '#a270d8',
    500: '#7231c5',
    950: '#000000',
  },
}
SCSS
$custom: #7231c5;
$custom-light: #a270d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7231c5",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 266.351,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.48691,
    "c": 0.21302,
    "h": 297.8
  },
  "luminance": 0.09805
}

Semantic roles & 50–950 ramp

primary
#7231C5
secondary
#ADCD85
accent
#E3449E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7231C5

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

Preview Lab → · Contrast checker → · Palette generator →

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