#7238BF#7238BF

#7238BF is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.0% C 0.199 H 298.3°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#7238BF
RGBrgb(114, 56, 191)
HSLhsl(266, 55%, 48%)
HSVhsv(266, 71%, 75%)
CMYKcmyk(40.3%, 70.7%, 0%, 25.1%)
CIE-LABlab(38.14, 52.46, -61.27)
CIE-LCHlch(38.14, 80.66, 310.57°)
OKLaboklab(49% 0.0943 -0.175)
OKLCHoklch(49% 0.199 298.3)
XYZxyz(17.7552, 10.1671, 50.3071)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238BF #85BF38
analogous
#3841BF #7238BF #B538BF
triadic
#7238BF #BF7238 #38BF72
tetradic
#7238BF #BF3841 #85BF38 #38BFB5
square
#7238BF #BF3841 #85BF38 #38BFB5
split-complementary
#7238BF #BFB538 #41BF38
monochromatic
#3A1C60 #562A90 #7238BF #9263D1 #B392DF

Accessibility & contrast

On white

6.92
#7238BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7238BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7238BF
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238BF#FFFFFF#000000##FFFFFF
##7238BF1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0058BC
Tritanopia (blue-blind)
#5F5978
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7238bf;
/* rgb */ color: rgb(114, 56, 191);
/* oklch */ color: oklch(49.0% 0.199 298.3);
Tailwind
colors: {
  custom: {
    50: '#a173d3',
    500: '#7238bf',
    950: '#000000',
  },
}
SCSS
$custom: #7238bf;
$custom-light: #a173d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7238bf",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 265.778,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49,
    "c": 0.19878,
    "h": 298.3
  },
  "luminance": 0.10167
}

Semantic roles & 50–950 ramp

primary
#7238BF
secondary
#AECA89
accent
#DE4A9E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7238BF

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

Preview Lab → · Contrast checker → · Palette generator →

#7238BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva