#7231B6#7231B6

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

Color values

HEX#7231B6
RGBrgb(114, 49, 182)
HSLhsl(269, 58%, 45%)
HSVhsv(269, 73%, 71%)
CMYKcmyk(37.4%, 73.1%, 0%, 28.6%)
CIE-LABlab(36.27, 53.49, -59.01)
CIE-LCHlch(36.27, 79.64, 312.19°)
OKLaboklab(47.46% 0.1028 -0.1683)
OKLCHoklch(47.46% 0.197 301.4)
XYZxyz(16.4792, 9.1513, 45.1451)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231B6 #75B631
analogous
#3133B6 #7231B6 #B431B6
triadic
#7231B6 #B67231 #31B672
tetradic
#7231B6 #B63133 #75B631 #31B6B4
square
#7231B6 #B63133 #75B631 #31B6B4
split-complementary
#7231B6 #B6B431 #33B631
monochromatic
#361756 #542486 #7231B6 #9153D1 #B084DE

Accessibility & contrast

On white

7.42
#7231B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7231B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231B6
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231B6#FFFFFF#000000##FFFFFF
##7231B61.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7231b6;
/* rgb */ color: rgb(114, 49, 182);
/* oklch */ color: oklch(47.5% 0.197 301.4);
Tailwind
colors: {
  custom: {
    50: '#a06fcd',
    500: '#7231b6',
    950: '#000000',
  },
}
SCSS
$custom: #7231b6;
$custom-light: #a06fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7231b6",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 269.323,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47456,
    "c": 0.19722,
    "h": 301.4
  },
  "luminance": 0.09151
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7231B6

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

Preview Lab → · Contrast checker → · Palette generator →

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