#7238AB#7238AB

#7238AB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.5% C 0.177 H 303.4°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7238AB
RGBrgb(114, 56, 171)
HSLhsl(270, 51%, 45%)
HSVhsv(270, 67%, 67%)
CMYKcmyk(33.3%, 67.3%, 0%, 32.9%)
CIE-LABlab(36.64, 47.45, -51.87)
CIE-LCHlch(36.64, 70.30, 312.45°)
OKLaboklab(47.46% 0.0973 -0.1474)
OKLCHoklch(47.46% 0.177 303.4)
XYZxyz(15.7026, 9.3460, 39.4969)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238AB #71AB38
analogous
#3938AB #7238AB #AB38AB
triadic
#7238AB #AB7238 #38AB72
tetradic
#7238AB #AB3938 #71AB38 #38ABAB
square
#7238AB #AB3938 #71AB38 #38ABAB
split-complementary
#7238AB #ABAB38 #38AB39
monochromatic
#351A4F #53297D #7238AB #9158C8 #AF86D7

Accessibility & contrast

On white

7.32
#7238AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7238AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7238AB
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238AB#FFFFFF#000000##FFFFFF
##7238AB1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#0A56A9
Tritanopia (blue-blind)
#67526D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7238ab;
/* rgb */ color: rgb(114, 56, 171);
/* oklch */ color: oklch(47.5% 0.177 303.4);
Tailwind
colors: {
  custom: {
    50: '#9f73c5',
    500: '#7238ab',
    950: '#000000',
  },
}
SCSS
$custom: #7238ab;
$custom-light: #9f73c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7238ab",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 270.261,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47459,
    "c": 0.17658,
    "h": 303.4
  },
  "luminance": 0.09346
}

Semantic roles & 50–950 ramp

primary
#7238AB
secondary
#9FC17D
accent
#DA4E93
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7238AB

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

Preview Lab → · Contrast checker → · Palette generator →

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