#7231B7#7231B7

#7231B7 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.5% C 0.198 H 301.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7231B7
RGBrgb(114, 49, 183)
HSLhsl(269, 58%, 45%)
HSVhsv(269, 73%, 72%)
CMYKcmyk(37.7%, 73.2%, 0%, 28.2%)
CIE-LABlab(36.35, 53.73, -59.47)
CIE-LCHlch(36.35, 80.15, 312.10°)
OKLaboklab(47.54% 0.1026 -0.1696)
OKLCHoklch(47.54% 0.198 301.2)
XYZxyz(16.5829, 9.1928, 45.6913)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231B7 #76B731
analogous
#3133B7 #7231B7 #B531B7
triadic
#7231B7 #B77231 #31B772
tetradic
#7231B7 #B73133 #76B731 #31B7B5
square
#7231B7 #B73133 #76B731 #31B7B5
split-complementary
#7231B7 #B7B531 #33B731
monochromatic
#361756 #542487 #7231B7 #9154D1 #B084DE

Accessibility & contrast

On white

7.40
#7231B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7231B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231B7
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231B7#FFFFFF#000000##FFFFFF
##7231B71.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0055B4
Tritanopia (blue-blind)
#635271
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7231b7;
/* rgb */ color: rgb(114, 49, 183);
/* oklch */ color: oklch(47.5% 0.198 301.2);
Tailwind
colors: {
  custom: {
    50: '#a06fce',
    500: '#7231b7',
    950: '#000000',
  },
}
SCSS
$custom: #7231b7;
$custom-light: #a06fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7231b7",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 269.104,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47537,
    "c": 0.19828,
    "h": 301.2
  },
  "luminance": 0.09193
}

Semantic roles & 50–950 ramp

primary
#7231B7
secondary
#A3C87C
accent
#E14796
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #7231B7

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

Preview Lab → · Contrast checker → · Palette generator →

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