#7231B8#7231B8

#7231B8 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.6% C 0.199 H 300.9°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7231B8
RGBrgb(114, 49, 184)
HSLhsl(269, 58%, 46%)
HSVhsv(269, 73%, 72%)
CMYKcmyk(38%, 73.4%, 0%, 27.8%)
CIE-LABlab(36.43, 53.98, -59.93)
CIE-LCHlch(36.43, 80.66, 312.01°)
OKLaboklab(47.62% 0.1024 -0.171)
OKLCHoklch(47.62% 0.199 300.9)
XYZxyz(16.6874, 9.2346, 46.2414)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231B8 #77B831
analogous
#3133B8 #7231B8 #B531B8
triadic
#7231B8 #B87231 #31B872
tetradic
#7231B8 #B83133 #77B831 #31B8B5
square
#7231B8 #B83133 #77B831 #31B8B5
split-complementary
#7231B8 #B8B531 #33B831
monochromatic
#361757 #542488 #7231B8 #9155D2 #B085DE

Accessibility & contrast

On white

7.38
#7231B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7231B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231B8
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231B8#FFFFFF#000000##FFFFFF
##7231B81.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#625372
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7231b8;
/* rgb */ color: rgb(114, 49, 184);
/* oklch */ color: oklch(47.6% 0.199 300.9);
Tailwind
colors: {
  custom: {
    50: '#a16fce',
    500: '#7231b8',
    950: '#000000',
  },
}
SCSS
$custom: #7231b8;
$custom-light: #a16fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7231b8",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 268.889,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47617,
    "c": 0.19933,
    "h": 300.9
  },
  "luminance": 0.09235
}

Semantic roles & 50–950 ramp

primary
#7231B8
secondary
#A4C87D
accent
#E14797
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #7231B8

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

Preview Lab → · Contrast checker → · Palette generator →

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