#7231BC#7231BC

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

Color values

HEX#7231BC
RGBrgb(114, 49, 188)
HSLhsl(268, 59%, 46%)
HSVhsv(268, 74%, 74%)
CMYKcmyk(39.4%, 73.9%, 0%, 26.3%)
CIE-LABlab(36.75, 54.95, -61.77)
CIE-LCHlch(36.75, 82.68, 311.66°)
OKLaboklab(47.94% 0.1016 -0.1764)
OKLCHoklch(47.94% 0.204 299.9)
XYZxyz(17.1126, 9.4047, 48.4809)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231BC #7BBC31
analogous
#3135BC #7231BC #B831BC
triadic
#7231BC #BC7231 #31BC72
tetradic
#7231BC #BC3135 #7BBC31 #31BCB8
square
#7231BC #BC3135 #7BBC31 #31BCB8
split-complementary
#7231BC #BCB831 #35BC31
monochromatic
#37185B #55248B #7231BC #9157D3 #B188E0

Accessibility & contrast

On white

7.29
#7231BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7231BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231BC
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231BC#FFFFFF#000000##FFFFFF
##7231BC1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7231bc;
/* rgb */ color: rgb(114, 49, 188);
/* oklch */ color: oklch(47.9% 0.204 299.9);
Tailwind
colors: {
  custom: {
    50: '#a16fd1',
    500: '#7231bc',
    950: '#000000',
  },
}
SCSS
$custom: #7231bc;
$custom-light: #a16fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7231bc",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 268.058,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47943,
    "c": 0.20356,
    "h": 299.9
  },
  "luminance": 0.09405
}

Semantic roles & 50–950 ramp

primary
#7231BC
secondary
#A7CA7F
accent
#E24699
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7231BC

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

Preview Lab → · Contrast checker → · Palette generator →

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