#7338CA#7338CA

#7338CA is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.0% C 0.211 H 296.3°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#7338CA
RGBrgb(115, 56, 202)
HSLhsl(264, 58%, 51%)
HSVhsv(264, 72%, 79%)
CMYKcmyk(43.1%, 72.3%, 0%, 20.8%)
CIE-LABlab(39.13, 55.44, -66.06)
CIE-LCHlch(39.13, 86.24, 310.00°)
OKLaboklab(50% 0.0936 -0.189)
OKLCHoklch(50% 0.211 296.3)
XYZxyz(19.1423, 10.7370, 56.9296)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7338CA #8FCA38
analogous
#3846CA #7338CA #BC38CA
triadic
#7338CA #CA7338 #38CA73
tetradic
#7338CA #CA3846 #8FCA38 #38CABC
square
#7338CA #CA3846 #8FCA38 #38CABC
split-complementary
#7338CA #CABC38 #46CA38
monochromatic
#3C1D6B #57299B #7338CA #9568D7 #B799E4

Accessibility & contrast

On white

6.67
#7338CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7338CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7338CA
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7338CA#FFFFFF#000000##FFFFFF
##7338CA1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#5C5D7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7338ca;
/* rgb */ color: rgb(115, 56, 202);
/* oklch */ color: oklch(50.0% 0.211 296.3);
Tailwind
colors: {
  custom: {
    50: '#a374db',
    500: '#7338ca',
    950: '#000000',
  },
}
SCSS
$custom: #7338ca;
$custom-light: #a374db;
$custom-dark: #000000;
JSON
{
  "hex": "#7338ca",
  "rgb": {
    "r": 115,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 264.247,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.50004,
    "c": 0.21092,
    "h": 296.3
  },
  "luminance": 0.10737
}

Semantic roles & 50–950 ramp

primary
#7338CA
secondary
#B5CF8E
accent
#E147A3
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7338CA

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

Preview Lab → · Contrast checker → · Palette generator →

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