#7231C4#7231C4

#7231C4 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.212 H 298.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7231C4
RGBrgb(114, 49, 196)
HSLhsl(267, 60%, 48%)
HSVhsv(267, 75%, 77%)
CMYKcmyk(41.8%, 75%, 0%, 23.1%)
CIE-LABlab(37.41, 56.92, -65.39)
CIE-LCHlch(37.41, 86.70, 311.04°)
OKLaboklab(48.61% 0.0997 -0.187)
OKLCHoklch(48.61% 0.212 298.1)
XYZxyz(17.9990, 9.7593, 53.1493)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231C4 #83C431
analogous
#3139C4 #7231C4 #BC31C4
triadic
#7231C4 #C47231 #31C472
tetradic
#7231C4 #C43139 #83C431 #31C4BC
square
#7231C4 #C43139 #83C431 #31C4BC
split-complementary
#7231C4 #C4BC31 #39C431
monochromatic
#391962 #562593 #7231C4 #925CD6 #B38DE2

Accessibility & contrast

On white

7.11
#7231C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7231C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7231C4#FFFFFF#000000##FFFFFF
##7231C41.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#0056C1
Tritanopia (blue-blind)
#5D5879
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7231c4;
/* rgb */ color: rgb(114, 49, 196);
/* oklch */ color: oklch(48.6% 0.212 298.1);
Tailwind
colors: {
  custom: {
    50: '#a270d7',
    500: '#7231c4',
    950: '#000000',
  },
}
SCSS
$custom: #7231c4;
$custom-light: #a270d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7231c4",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 266.531,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.48607,
    "c": 0.21196,
    "h": 298.1
  },
  "luminance": 0.0976
}

Semantic roles & 50–950 ramp

primary
#7231C4
secondary
#ADCD84
accent
#E3459D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7231C4

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

Preview Lab → · Contrast checker → · Palette generator →

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