#7231B5#7231B5

#7231B5 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.196 H 301.7°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7231B5
RGBrgb(114, 49, 181)
HSLhsl(270, 57%, 45%)
HSVhsv(270, 73%, 71%)
CMYKcmyk(37%, 72.9%, 0%, 29%)
CIE-LABlab(36.20, 53.24, -58.54)
CIE-LCHlch(36.20, 79.13, 312.29°)
OKLaboklab(47.38% 0.103 -0.1669)
OKLCHoklch(47.38% 0.196 301.7)
XYZxyz(16.3762, 9.1102, 44.6028)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231B5 #74B531
analogous
#3132B5 #7231B5 #B431B5
triadic
#7231B5 #B57231 #31B572
tetradic
#7231B5 #B53132 #74B531 #31B5B4
square
#7231B5 #B53132 #74B531 #31B5B4
split-complementary
#7231B5 #B5B431 #32B531
monochromatic
#351755 #542485 #7231B5 #9153D0 #B083DD

Accessibility & contrast

On white

7.44
#7231B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7231B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231B5
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231B5#FFFFFF#000000##FFFFFF
##7231B51.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#645270
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7231b5;
/* rgb */ color: rgb(114, 49, 181);
/* oklch */ color: oklch(47.4% 0.196 301.7);
Tailwind
colors: {
  custom: {
    50: '#a06fcc',
    500: '#7231b5',
    950: '#000000',
  },
}
SCSS
$custom: #7231b5;
$custom-light: #a06fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7231b5",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 269.545,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47376,
    "c": 0.19617,
    "h": 301.7
  },
  "luminance": 0.0911
}

Semantic roles & 50–950 ramp

primary
#7231B5
secondary
#A1C77B
accent
#E14795
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7231B5

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

Preview Lab → · Contrast checker → · Palette generator →

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