#7231BF#7231BF

#7231BF is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.207 H 299.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7231BF
RGBrgb(114, 49, 191)
HSLhsl(267, 59%, 47%)
HSVhsv(267, 74%, 75%)
CMYKcmyk(40.3%, 74.3%, 0%, 25.1%)
CIE-LABlab(37.00, 55.69, -63.14)
CIE-LCHlch(37.00, 84.19, 311.41°)
OKLaboklab(48.19% 0.1009 -0.1804)
OKLCHoklch(48.19% 0.207 299.2)
XYZxyz(17.4393, 9.5354, 50.2018)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231BF #7EBF31
analogous
#3137BF #7231BF #B931BF
triadic
#7231BF #BF7231 #31BF72
tetradic
#7231BF #BF3137 #7EBF31 #31BFB9
square
#7231BF #BF3137 #7EBF31 #31BFB9
split-complementary
#7231BF #BFB931 #37BF31
monochromatic
#38185E #55258E #7231BF #9159D4 #B28AE1

Accessibility & contrast

On white

7.22
#7231BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7231BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231BF
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231BF#FFFFFF#000000##FFFFFF
##7231BF1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0056BC
Tritanopia (blue-blind)
#605676
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7231bf;
/* rgb */ color: rgb(114, 49, 191);
/* oklch */ color: oklch(48.2% 0.207 299.2);
Tailwind
colors: {
  custom: {
    50: '#a170d3',
    500: '#7231bf',
    950: '#000000',
  },
}
SCSS
$custom: #7231bf;
$custom-light: #a170d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7231bf",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 267.465,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4819,
    "c": 0.20672,
    "h": 299.2
  },
  "luminance": 0.09536
}

Semantic roles & 50–950 ramp

primary
#7231BF
secondary
#A9CB81
accent
#E2459B
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7231BF

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

Preview Lab → · Contrast checker → · Palette generator →

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