#7231B4#7231B4

#7231B4 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.3% C 0.195 H 301.9°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7231B4
RGBrgb(114, 49, 180)
HSLhsl(270, 57%, 45%)
HSVhsv(270, 73%, 71%)
CMYKcmyk(36.7%, 72.8%, 0%, 29.4%)
CIE-LABlab(36.12, 53.00, -58.08)
CIE-LCHlch(36.12, 78.63, 312.38°)
OKLaboklab(47.3% 0.1032 -0.1656)
OKLCHoklch(47.3% 0.195 301.9)
XYZxyz(16.2740, 9.0693, 44.0643)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231B4 #73B431
analogous
#3132B4 #7231B4 #B331B4
triadic
#7231B4 #B47231 #31B472
tetradic
#7231B4 #B43132 #73B431 #31B4B3
square
#7231B4 #B43132 #73B431 #31B4B3
split-complementary
#7231B4 #B4B331 #32B431
monochromatic
#351754 #542484 #7231B4 #9152D0 #AF82DD

Accessibility & contrast

On white

7.46
#7231B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7231B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231B4
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231B4#FFFFFF#000000##FFFFFF
##7231B41.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#645170
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7231b4;
/* rgb */ color: rgb(114, 49, 180);
/* oklch */ color: oklch(47.3% 0.195 301.9);
Tailwind
colors: {
  custom: {
    50: '#a06fcb',
    500: '#7231b4',
    950: '#000000',
  },
}
SCSS
$custom: #7231b4;
$custom-light: #a06fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7231b4",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 269.771,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47296,
    "c": 0.19511,
    "h": 301.9
  },
  "luminance": 0.09069
}

Semantic roles & 50–950 ramp

primary
#7231B4
secondary
#A1C67B
accent
#E04794
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7231B4

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

Preview Lab → · Contrast checker → · Palette generator →

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