#7338AB#7338AB

#7338AB is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.177 H 303.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7338AB
RGBrgb(115, 56, 171)
HSLhsl(271, 51%, 45%)
HSVhsv(271, 67%, 67%)
CMYKcmyk(32.7%, 67.3%, 0%, 32.9%)
CIE-LABlab(36.77, 47.66, -51.66)
CIE-LCHlch(36.77, 70.29, 312.69°)
OKLaboklab(47.58% 0.0987 -0.1467)
OKLCHoklch(47.58% 0.177 303.9)
XYZxyz(15.8334, 9.4135, 39.5030)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7338AB #70AB38
analogous
#3A38AB #7338AB #AB38AA
triadic
#7338AB #AB7338 #38AB73
tetradic
#7338AB #AB3A38 #70AB38 #38AAAB
square
#7338AB #AB3A38 #70AB38 #38AAAB
split-complementary
#7338AB #AAAB38 #38AB3A
monochromatic
#351A4F #54297D #7338AB #9258C8 #B086D7

Accessibility & contrast

On white

7.29
#7338AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7338AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7338AB
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7338AB#FFFFFF#000000##FFFFFF
##7338AB1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7338ab;
/* rgb */ color: rgb(115, 56, 171);
/* oklch */ color: oklch(47.6% 0.177 303.9);
Tailwind
colors: {
  custom: {
    50: '#a073c5',
    500: '#7338ab',
    950: '#000000',
  },
}
SCSS
$custom: #7338ab;
$custom-light: #a073c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7338ab",
  "rgb": {
    "r": 115,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 270.783,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47577,
    "c": 0.1768,
    "h": 303.9
  },
  "luminance": 0.09413
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7338AB

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

Preview Lab → · Contrast checker → · Palette generator →

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