#7E8529#7E8529

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

Color values

HEX#7E8529
RGBrgb(126, 133, 41)
HSLhsl(65, 53%, 34%)
HSVhsv(65, 69%, 52%)
CMYKcmyk(5.3%, 0%, 69.2%, 47.8%)
CIE-LABlab(53.35, -15.07, 46.52)
CIE-LCHlch(53.35, 48.90, 107.95°)
OKLaboklab(59.27% -0.0457 0.1045)
OKLCHoklch(59.27% 0.114 113.6)
XYZxyz(17.3924, 21.3711, 5.3062)
Luminance0.2137 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8529 #302985
analogous
#855E29 #7E8529 #508529
triadic
#7E8529 #297E85 #85297E
tetradic
#7E8529 #29855E #302985 #852950
square
#7E8529 #29855E #302985 #852950
split-complementary
#7E8529 #295085 #5E2985
monochromatic
#25270C #52561B #7E8529 #AAB437 #C4CD5C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E8529#FFFFFF#000000##000000
##7E85291.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)
#8F7F1B
Deuteranopia (green-blind)
#8F8030
Tritanopia (blue-blind)
#867D73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e8529;
/* rgb */ color: rgb(126, 133, 41);
/* oklch */ color: oklch(59.3% 0.114 113.6);
Tailwind
colors: {
  custom: {
    50: '#a6a868',
    500: '#7e8529',
    950: '#000000',
  },
}
SCSS
$custom: #7e8529;
$custom-light: #a6a868;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8529",
  "rgb": {
    "r": 126,
    "g": 133,
    "b": 41
  },
  "hsl": {
    "h": 64.565,
    "s": 52.874,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59269,
    "c": 0.11406,
    "h": 113.6
  },
  "luminance": 0.21371
}

Semantic roles & 50–950 ramp

primary
#7E8529
secondary
#5F58B2
accent
#4CDC57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8529

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

Preview Lab → · Contrast checker → · Palette generator →

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