#7238BD#7238BD

#7238BD is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.8% C 0.197 H 298.8°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#7238BD
RGBrgb(114, 56, 189)
HSLhsl(266, 54%, 48%)
HSVhsv(266, 70%, 74%)
CMYKcmyk(39.7%, 70.4%, 0%, 25.9%)
CIE-LABlab(37.98, 51.95, -60.35)
CIE-LCHlch(37.98, 79.63, 310.72°)
OKLaboklab(48.84% 0.0947 -0.1723)
OKLCHoklch(48.84% 0.197 298.8)
XYZxyz(17.5366, 10.0796, 49.1559)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238BD #83BD38
analogous
#3841BD #7238BD #B438BD
triadic
#7238BD #BD7238 #38BD72
tetradic
#7238BD #BD3841 #83BD38 #38BDB4
square
#7238BD #BD3841 #83BD38 #38BDB4
split-complementary
#7238BD #BDB438 #41BD38
monochromatic
#391C5F #562A8E #7238BD #9262D0 #B391DE

Accessibility & contrast

On white

6.96
#7238BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7238BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7238BD
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238BD#FFFFFF#000000##FFFFFF
##7238BD1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#605876
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7238bd;
/* rgb */ color: rgb(114, 56, 189);
/* oklch */ color: oklch(48.8% 0.197 298.8);
Tailwind
colors: {
  custom: {
    50: '#a173d2',
    500: '#7238bd',
    950: '#000000',
  },
}
SCSS
$custom: #7238bd;
$custom-light: #a173d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7238bd",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 266.165,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.48841,
    "c": 0.19658,
    "h": 298.8
  },
  "luminance": 0.1008
}

Semantic roles & 50–950 ramp

primary
#7238BD
secondary
#ADC987
accent
#DE4A9D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #7238BD

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

Preview Lab → · Contrast checker → · Palette generator →

#7238BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva