#7231B2#7231B2

#7231B2 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.1% C 0.193 H 302.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#7231B2
RGBrgb(114, 49, 178)
HSLhsl(270, 57%, 45%)
HSVhsv(270, 72%, 70%)
CMYKcmyk(36%, 72.5%, 0%, 30.2%)
CIE-LABlab(35.96, 52.52, -57.14)
CIE-LCHlch(35.96, 77.61, 312.58°)
OKLaboklab(47.14% 0.1036 -0.1628)
OKLCHoklch(47.14% 0.193 302.5)
XYZxyz(16.0717, 8.9884, 42.9991)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231B2 #71B231
analogous
#3231B2 #7231B2 #B231B1
triadic
#7231B2 #B27231 #31B272
tetradic
#7231B2 #B23231 #71B231 #31B1B2
square
#7231B2 #B23231 #71B231 #31B1B2
split-complementary
#7231B2 #B1B231 #31B232
monochromatic
#351752 #532482 #7231B2 #9151CF #AF81DC

Accessibility & contrast

On white

7.51
#7231B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7231B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231B2
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231B2#FFFFFF#000000##FFFFFF
##7231B21.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#65506E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7231b2;
/* rgb */ color: rgb(114, 49, 178);
/* oklch */ color: oklch(47.1% 0.193 302.5);
Tailwind
colors: {
  custom: {
    50: '#a06fca',
    500: '#7231b2',
    950: '#000000',
  },
}
SCSS
$custom: #7231b2;
$custom-light: #a06fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7231b2",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 270.233,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47138,
    "c": 0.193,
    "h": 302.5
  },
  "luminance": 0.08988
}

Semantic roles & 50–950 ramp

primary
#7231B2
secondary
#9FC579
accent
#E04893
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7231B2

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

Preview Lab → · Contrast checker → · Palette generator →

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