#7238AD#7238AD

#7238AD is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.179 H 302.9°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7238AD
RGBrgb(114, 56, 173)
HSLhsl(270, 51%, 45%)
HSVhsv(270, 68%, 68%)
CMYKcmyk(34.1%, 67.6%, 0%, 32.2%)
CIE-LABlab(36.79, 47.94, -52.83)
CIE-LCHlch(36.79, 71.34, 312.22°)
OKLaboklab(47.61% 0.0971 -0.1502)
OKLCHoklch(47.61% 0.179 302.9)
XYZxyz(15.8947, 9.4229, 40.5085)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238AD #73AD38
analogous
#3838AD #7238AD #AD38AD
triadic
#7238AD #AD7238 #38AD72
tetradic
#7238AD #AD3838 #73AD38 #38ADAD
square
#7238AD #AD3838 #73AD38 #38ADAD
split-complementary
#7238AD #ADAD38 #38AD38
monochromatic
#351A51 #54297F #7238AD #9159C9 #AF87D8

Accessibility & contrast

On white

7.28
#7238AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7238AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7238AD
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238AD#FFFFFF#000000##FFFFFF
##7238AD1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B1
Deuteranopia (green-blind)
#0256AA
Tritanopia (blue-blind)
#66526E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7238ad;
/* rgb */ color: rgb(114, 56, 173);
/* oklch */ color: oklch(47.6% 0.179 302.9);
Tailwind
colors: {
  custom: {
    50: '#9f73c6',
    500: '#7238ad',
    950: '#000000',
  },
}
SCSS
$custom: #7238ad;
$custom-light: #9f73c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7238ad",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 269.744,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47607,
    "c": 0.17881,
    "h": 302.9
  },
  "luminance": 0.09423
}

Semantic roles & 50–950 ramp

primary
#7238AD
secondary
#A1C27F
accent
#DB4D95
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7238AD

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

Preview Lab → · Contrast checker → · Palette generator →

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