#7338BA#7338BA

#7338BA is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.7% C 0.193 H 300.0°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#7338BA
RGBrgb(115, 56, 186)
HSLhsl(267, 54%, 47%)
HSVhsv(267, 70%, 73%)
CMYKcmyk(38.2%, 69.9%, 0%, 27.1%)
CIE-LABlab(37.88, 51.39, -58.76)
CIE-LCHlch(37.88, 78.06, 311.17°)
OKLaboklab(48.72% 0.0966 -0.1676)
OKLCHoklch(48.72% 0.193 300)
XYZxyz(17.3451, 10.0182, 47.4647)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7338BA #7FBA38
analogous
#383EBA #7338BA #B438BA
triadic
#7338BA #BA7338 #38BA73
tetradic
#7338BA #BA383E #7FBA38 #38BAB4
square
#7338BA #BA383E #7FBA38 #38BAB4
split-complementary
#7338BA #BAB438 #3EBA38
monochromatic
#391C5C #562A8B #7338BA #9260CF #B38FDD

Accessibility & contrast

On white

6.99
#7338BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#7338BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7338BA
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7338BA#FFFFFF#000000##FFFFFF
##7338BA1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#635775
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7338ba;
/* rgb */ color: rgb(115, 56, 186);
/* oklch */ color: oklch(48.7% 0.193 300.0);
Tailwind
colors: {
  custom: {
    50: '#a173d0',
    500: '#7338ba',
    950: '#000000',
  },
}
SCSS
$custom: #7338ba;
$custom-light: #a173d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7338ba",
  "rgb": {
    "r": 115,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 267.231,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48717,
    "c": 0.19342,
    "h": 300
  },
  "luminance": 0.10018
}

Semantic roles & 50–950 ramp

primary
#7338BA
secondary
#AAC886
accent
#DD4B9B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #7338BA

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

Preview Lab → · Contrast checker → · Palette generator →

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