#7231C2#7231C2

#7231C2 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.210 H 298.5°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7231C2
RGBrgb(114, 49, 194)
HSLhsl(267, 60%, 48%)
HSVhsv(267, 75%, 76%)
CMYKcmyk(41.2%, 74.7%, 0%, 23.9%)
CIE-LABlab(37.24, 56.43, -64.49)
CIE-LCHlch(37.24, 85.70, 311.19°)
OKLaboklab(48.44% 0.1002 -0.1844)
OKLCHoklch(48.44% 0.21 298.5)
XYZxyz(17.7729, 9.6688, 51.9584)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7231C2 #81C231
analogous
#3138C2 #7231C2 #BB31C2
triadic
#7231C2 #C27231 #31C272
tetradic
#7231C2 #C23138 #81C231 #31C2BB
square
#7231C2 #C23138 #81C231 #31C2BB
split-complementary
#7231C2 #C2BB31 #38C231
monochromatic
#391860 #552591 #7231C2 #925BD6 #B28CE2

Accessibility & contrast

On white

7.16
#7231C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7231C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7231C2
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7231C2#FFFFFF#000000##FFFFFF
##7231C21.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#0056BF
Tritanopia (blue-blind)
#5E5777
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7231c2;
/* rgb */ color: rgb(114, 49, 194);
/* oklch */ color: oklch(48.4% 0.210 298.5);
Tailwind
colors: {
  custom: {
    50: '#a270d5',
    500: '#7231c2',
    950: '#000000',
  },
}
SCSS
$custom: #7231c2;
$custom-light: #a270d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7231c2",
  "rgb": {
    "r": 114,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 266.897,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48439,
    "c": 0.20986,
    "h": 298.5
  },
  "luminance": 0.09669
}

Semantic roles & 50–950 ramp

primary
#7231C2
secondary
#ABCC83
accent
#E3459C
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7231C2

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

Preview Lab → · Contrast checker → · Palette generator →

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