#7338AC#7338AC

#7338AC is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.7% C 0.178 H 303.6°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#7338AC
RGBrgb(115, 56, 172)
HSLhsl(271, 51%, 45%)
HSVhsv(271, 67%, 67%)
CMYKcmyk(33.1%, 67.4%, 0%, 32.5%)
CIE-LABlab(36.84, 47.91, -52.14)
CIE-LCHlch(36.84, 70.81, 312.58°)
OKLaboklab(47.65% 0.0986 -0.1481)
OKLCHoklch(47.65% 0.178 303.6)
XYZxyz(15.9291, 9.4518, 40.0069)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7338AC #71AC38
analogous
#3938AC #7338AC #AC38AB
triadic
#7338AC #AC7338 #38AC73
tetradic
#7338AC #AC3938 #71AC38 #38ABAC
square
#7338AC #AC3938 #71AC38 #38ABAC
split-complementary
#7338AC #ABAC38 #38AC39
monochromatic
#351A50 #54297E #7338AC #9258C9 #B087D8

Accessibility & contrast

On white

7.27
#7338AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7338AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7338AC
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7338AC#FFFFFF#000000##FFFFFF
##7338AC1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B0
Deuteranopia (green-blind)
#0A56AA
Tritanopia (blue-blind)
#68526D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7338ac;
/* rgb */ color: rgb(115, 56, 172);
/* oklch */ color: oklch(47.7% 0.178 303.6);
Tailwind
colors: {
  custom: {
    50: '#a073c5',
    500: '#7338ac',
    950: '#000000',
  },
}
SCSS
$custom: #7338ac;
$custom-light: #a073c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7338ac",
  "rgb": {
    "r": 115,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 270.517,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47651,
    "c": 0.17791,
    "h": 303.6
  },
  "luminance": 0.09452
}

Semantic roles & 50–950 ramp

primary
#7338AC
secondary
#9FC27E
accent
#DA4D93
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7338AC

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

Preview Lab → · Contrast checker → · Palette generator →

#7338AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva