#7E8528#7E8528

#7E8528 is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.3% C 0.115 H 113.6°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7E8528
RGBrgb(126, 133, 40)
HSLhsl(65, 54%, 34%)
HSVhsv(65, 70%, 52%)
CMYKcmyk(5.3%, 0%, 69.9%, 47.8%)
CIE-LABlab(53.35, -15.13, 46.93)
CIE-LCHlch(53.35, 49.31, 107.87°)
OKLaboklab(59.26% -0.0459 0.1052)
OKLCHoklch(59.26% 0.115 113.6)
XYZxyz(17.3752, 21.3642, 5.2155)
Luminance0.2136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8528 #2F2885
analogous
#855E28 #7E8528 #508528
triadic
#7E8528 #287E85 #85287E
tetradic
#7E8528 #28855E #2F2885 #852850
square
#7E8528 #28855E #2F2885 #852850
split-complementary
#7E8528 #285085 #5E2885
monochromatic
#25270C #51561A #7E8528 #ABB436 #C5CD5A

Accessibility & contrast

On white

3.98
#7E8528 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#7E8528 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8528
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8528#FFFFFF#000000##000000
##7E85281.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E1A
Deuteranopia (green-blind)
#8F802F
Tritanopia (blue-blind)
#867D72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e8528;
/* rgb */ color: rgb(126, 133, 40);
/* oklch */ color: oklch(59.3% 0.115 113.6);
Tailwind
colors: {
  custom: {
    50: '#a6a868',
    500: '#7e8528',
    950: '#000000',
  },
}
SCSS
$custom: #7e8528;
$custom-light: #a6a868;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8528",
  "rgb": {
    "r": 126,
    "g": 133,
    "b": 40
  },
  "hsl": {
    "h": 64.516,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59261,
    "c": 0.11479,
    "h": 113.6
  },
  "luminance": 0.21364
}

Semantic roles & 50–950 ramp

primary
#7E8528
secondary
#5D56B3
accent
#4BDD56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8528

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

Preview Lab → · Contrast checker → · Palette generator →

#7E8528 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva