#7231B1#7231B1

#7231B1 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.192 H 302.7°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7231B1
RGBrgb(114, 49, 177)
HSLhsl(270, 57%, 44%)
HSVhsv(270, 72%, 69%)
CMYKcmyk(35.6%, 72.3%, 0%, 30.6%)
CIE-LABlab(35.88, 52.27, -56.68)
CIE-LCHlch(35.88, 77.10, 312.69°)
OKLaboklab(47.06% 0.1038 -0.1614)
OKLCHoklch(47.06% 0.192 302.7)
XYZxyz(15.9717, 8.9483, 42.4722)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231B1 #70B131
analogous
#3231B1 #7231B1 #B131B0
triadic
#7231B1 #B17231 #31B172
tetradic
#7231B1 #B13231 #70B131 #31B0B1
square
#7231B1 #B13231 #70B131 #31B0B1
split-complementary
#7231B1 #B0B131 #31B132
monochromatic
#341651 #532481 #7231B1 #9151CF #AF80DC

Accessibility & contrast

On white

7.53
#7231B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7231B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7231B1#FFFFFF#000000##FFFFFF
##7231B11.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0054AE
Tritanopia (blue-blind)
#65506E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7231b1;
/* rgb */ color: rgb(114, 49, 177);
/* oklch */ color: oklch(47.1% 0.192 302.7);
Tailwind
colors: {
  custom: {
    50: '#a06fc9',
    500: '#7231b1',
    950: '#000000',
  },
}
SCSS
$custom: #7231b1;
$custom-light: #a06fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7231b1",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 270.469,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47059,
    "c": 0.19193,
    "h": 302.7
  },
  "luminance": 0.08948
}

Semantic roles & 50–950 ramp

primary
#7231B1
secondary
#9EC579
accent
#E04893
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7231B1

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

Preview Lab → · Contrast checker → · Palette generator →

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