#7231AF#7231AF

#7231AF is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.190 H 303.3°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#7231AF
RGBrgb(114, 49, 175)
HSLhsl(271, 56%, 44%)
HSVhsv(271, 72%, 69%)
CMYKcmyk(34.9%, 72%, 0%, 31.4%)
CIE-LABlab(35.73, 51.79, -55.73)
CIE-LCHlch(35.73, 76.08, 312.90°)
OKLaboklab(46.9% 0.1042 -0.1587)
OKLCHoklch(46.9% 0.19 303.3)
XYZxyz(15.7738, 8.8692, 41.4300)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231AF #6EAF31
analogous
#3331AF #7231AF #AF31AD
triadic
#7231AF #AF7231 #31AF72
tetradic
#7231AF #AF3331 #6EAF31 #31ADAF
square
#7231AF #AF3331 #6EAF31 #31ADAF
split-complementary
#7231AF #ADAF31 #31AF33
monochromatic
#34164F #53247F #7231AF #914FCE #AF7FDB

Accessibility & contrast

On white

7.57
#7231AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7231AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231AF
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231AF#FFFFFF#000000##FFFFFF
##7231AF1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0054AC
Tritanopia (blue-blind)
#664F6D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7231af;
/* rgb */ color: rgb(114, 49, 175);
/* oklch */ color: oklch(46.9% 0.190 303.3);
Tailwind
colors: {
  custom: {
    50: '#a06fc8',
    500: '#7231af',
    950: '#000000',
  },
}
SCSS
$custom: #7231af;
$custom-light: #a06fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7231af",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 270.952,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46902,
    "c": 0.18981,
    "h": 303.3
  },
  "luminance": 0.08869
}

Semantic roles & 50–950 ramp

primary
#7231AF
secondary
#9DC478
accent
#E04891
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7231AF

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

Preview Lab → · Contrast checker → · Palette generator →

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