#7231B3#7231B3

#7231B3 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.194 H 302.2°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7231B3
RGBrgb(114, 49, 179)
HSLhsl(270, 57%, 45%)
HSVhsv(270, 73%, 70%)
CMYKcmyk(36.3%, 72.6%, 0%, 29.8%)
CIE-LABlab(36.04, 52.76, -57.61)
CIE-LCHlch(36.04, 78.12, 312.48°)
OKLaboklab(47.22% 0.1034 -0.1642)
OKLCHoklch(47.22% 0.194 302.2)
XYZxyz(16.1725, 9.0287, 43.5298)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231B3 #72B331
analogous
#3131B3 #7231B3 #B331B3
triadic
#7231B3 #B37231 #31B372
tetradic
#7231B3 #B33131 #72B331 #31B3B3
square
#7231B3 #B33131 #72B331 #31B3B3
split-complementary
#7231B3 #B3B331 #31B331
monochromatic
#351753 #532483 #7231B3 #9152D0 #AF82DD

Accessibility & contrast

On white

7.48
#7231B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7231B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7231B3#FFFFFF#000000##FFFFFF
##7231B31.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#64516F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7231b3;
/* rgb */ color: rgb(114, 49, 179);
/* oklch */ color: oklch(47.2% 0.194 302.2);
Tailwind
colors: {
  custom: {
    50: '#a06fcb',
    500: '#7231b3',
    950: '#000000',
  },
}
SCSS
$custom: #7231b3;
$custom-light: #a06fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7231b3",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 270,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47217,
    "c": 0.19405,
    "h": 302.2
  },
  "luminance": 0.09029
}

Semantic roles & 50–950 ramp

primary
#7231B3
secondary
#A0C67A
accent
#E04894
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7231B3

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

Preview Lab → · Contrast checker → · Palette generator →

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