#7231BD#7231BD

#7231BD is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.205 H 299.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#7231BD
RGBrgb(114, 49, 189)
HSLhsl(268, 59%, 47%)
HSVhsv(268, 74%, 74%)
CMYKcmyk(39.7%, 74.1%, 0%, 25.9%)
CIE-LABlab(36.83, 55.20, -62.23)
CIE-LCHlch(36.83, 83.18, 311.58°)
OKLaboklab(48.03% 0.1013 -0.1777)
OKLCHoklch(48.03% 0.205 299.7)
XYZxyz(17.2207, 9.4480, 49.0506)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231BD #7CBD31
analogous
#3136BD #7231BD #B831BD
triadic
#7231BD #BD7231 #31BD72
tetradic
#7231BD #BD3136 #7CBD31 #31BDB8
square
#7231BD #BD3136 #7CBD31 #31BDB8
split-complementary
#7231BD #BDB831 #36BD31
monochromatic
#37185C #55248C #7231BD #9158D4 #B188E0

Accessibility & contrast

On white

7.27
#7231BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7231BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231BD
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231BD#FFFFFF#000000##FFFFFF
##7231BD1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#605575
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7231bd;
/* rgb */ color: rgb(114, 49, 189);
/* oklch */ color: oklch(48.0% 0.205 299.7);
Tailwind
colors: {
  custom: {
    50: '#a16fd2',
    500: '#7231bd',
    950: '#000000',
  },
}
SCSS
$custom: #7231bd;
$custom-light: #a16fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7231bd",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 267.857,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48025,
    "c": 0.20461,
    "h": 299.7
  },
  "luminance": 0.09448
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7231BD

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

Preview Lab → · Contrast checker → · Palette generator →

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