#7238AA#7238AA

#7238AA is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.4% C 0.175 H 303.7°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7238AA
RGBrgb(114, 56, 170)
HSLhsl(271, 50%, 44%)
HSVhsv(271, 67%, 67%)
CMYKcmyk(32.9%, 67.1%, 0%, 33.3%)
CIE-LABlab(36.57, 47.20, -51.39)
CIE-LCHlch(36.57, 69.78, 312.57°)
OKLaboklab(47.39% 0.0974 -0.1459)
OKLCHoklch(47.39% 0.175 303.7)
XYZxyz(15.6076, 9.3081, 38.9968)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238AA #70AA38
analogous
#3938AA #7238AA #AA38A9
triadic
#7238AA #AA7238 #38AA72
tetradic
#7238AA #AA3938 #70AA38 #38A9AA
square
#7238AA #AA3938 #70AA38 #38A9AA
split-complementary
#7238AA #A9AA38 #38AA39
monochromatic
#341A4E #53297C #7238AA #9157C8 #AF85D7

Accessibility & contrast

On white

7.34
#7238AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7238AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7238AA#FFFFFF#000000##FFFFFF
##7238AA1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#0E56A8
Tritanopia (blue-blind)
#67516C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7238aa;
/* rgb */ color: rgb(114, 56, 170);
/* oklch */ color: oklch(47.4% 0.175 303.7);
Tailwind
colors: {
  custom: {
    50: '#9f73c4',
    500: '#7238aa',
    950: '#000000',
  },
}
SCSS
$custom: #7238aa;
$custom-light: #9f73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7238aa",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 270.526,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47385,
    "c": 0.17547,
    "h": 303.7
  },
  "luminance": 0.09308
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7238AA

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

Preview Lab → · Contrast checker → · Palette generator →

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