#7231BB#7231BB

#7231BB is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.9% C 0.203 H 300.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7231BB
RGBrgb(114, 49, 187)
HSLhsl(268, 58%, 46%)
HSVhsv(268, 74%, 73%)
CMYKcmyk(39%, 73.8%, 0%, 26.7%)
CIE-LABlab(36.67, 54.71, -61.31)
CIE-LCHlch(36.67, 82.17, 311.74°)
OKLaboklab(47.86% 0.1018 -0.1751)
OKLCHoklch(47.86% 0.203 300.2)
XYZxyz(17.0052, 9.3617, 47.9152)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231BB #7ABB31
analogous
#3135BB #7231BB #B731BB
triadic
#7231BB #BB7231 #31BB72
tetradic
#7231BB #BB3135 #7ABB31 #31BBB7
square
#7231BB #BB3135 #7ABB31 #31BBB7
split-complementary
#7231BB #BBB731 #35BB31
monochromatic
#37185A #54248B #7231BB #9156D3 #B187E0

Accessibility & contrast

On white

7.31
#7231BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7231BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231BB
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231BB#FFFFFF#000000##FFFFFF
##7231BB1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#615474
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7231bb;
/* rgb */ color: rgb(114, 49, 187);
/* oklch */ color: oklch(47.9% 0.203 300.2);
Tailwind
colors: {
  custom: {
    50: '#a16fd0',
    500: '#7231bb',
    950: '#000000',
  },
}
SCSS
$custom: #7231bb;
$custom-light: #a16fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7231bb",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 268.261,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47861,
    "c": 0.20251,
    "h": 300.2
  },
  "luminance": 0.09362
}

Semantic roles & 50–950 ramp

primary
#7231BB
secondary
#A6C97F
accent
#E24698
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7231BB

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

Preview Lab → · Contrast checker → · Palette generator →

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