#7338AF#7338AF

#7338AF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.9% C 0.181 H 302.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7338AF
RGBrgb(115, 56, 175)
HSLhsl(270, 52%, 45%)
HSVhsv(270, 68%, 69%)
CMYKcmyk(34.3%, 68%, 0%, 31.4%)
CIE-LABlab(37.06, 48.65, -53.58)
CIE-LCHlch(37.06, 72.37, 312.24°)
OKLaboklab(47.87% 0.0982 -0.1523)
OKLCHoklch(47.87% 0.181 302.8)
XYZxyz(16.2205, 9.5683, 41.5415)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7338AF #74AF38
analogous
#3838AF #7338AF #AE38AF
triadic
#7338AF #AF7338 #38AF73
tetradic
#7338AF #AF3838 #74AF38 #38AFAE
square
#7338AF #AF3838 #74AF38 #38AFAE
split-complementary
#7338AF #AFAE38 #38AF38
monochromatic
#361A52 #552981 #7338AF #925ACA #B088D9

Accessibility & contrast

On white

7.21
#7338AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7338AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7338AF
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7338AF#FFFFFF#000000##FFFFFF
##7338AF1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#0057AC
Tritanopia (blue-blind)
#67536F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7338af;
/* rgb */ color: rgb(115, 56, 175);
/* oklch */ color: oklch(47.9% 0.181 302.8);
Tailwind
colors: {
  custom: {
    50: '#a073c8',
    500: '#7338af',
    950: '#000000',
  },
}
SCSS
$custom: #7338af;
$custom-light: #a073c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7338af",
  "rgb": {
    "r": 115,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 269.748,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47874,
    "c": 0.18125,
    "h": 302.8
  },
  "luminance": 0.09568
}

Semantic roles & 50–950 ramp

primary
#7338AF
secondary
#A2C380
accent
#DB4D94
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7338AF

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

Preview Lab → · Contrast checker → · Palette generator →

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