#7E8124#7E8124

#7E8124 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.3% C 0.113 H 111.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7E8124
RGBrgb(126, 129, 36)
HSLhsl(62, 56%, 32%)
HSVhsv(62, 72%, 51%)
CMYKcmyk(2.3%, 0%, 72.1%, 49.4%)
CIE-LABlab(52.13, -13.23, 47.33)
CIE-LCHlch(52.13, 49.15, 105.61°)
OKLaboklab(58.28% -0.041 0.1054)
OKLCHoklch(58.28% 0.113 111.3)
XYZxyz(16.7734, 20.2639, 4.6965)
Luminance0.2026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8124 #272481
analogous
#815524 #7E8124 #508124
triadic
#7E8124 #247E81 #81247E
tetradic
#7E8124 #248155 #272481 #812450
square
#7E8124 #248155 #272481 #812450
split-complementary
#7E8124 #245081 #552481
monochromatic
#212109 #4F5117 #7E8124 #ADB131 #CACE51

Accessibility & contrast

On white

4.16
#7E8124 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#7E8124 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8124
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8124#FFFFFF#000000##000000
##7E81241.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B14
Deuteranopia (green-blind)
#8C7E2B
Tritanopia (blue-blind)
#87796F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e8124;
/* rgb */ color: rgb(126, 129, 36);
/* oklch */ color: oklch(58.3% 0.113 111.3);
Tailwind
colors: {
  custom: {
    50: '#a6a565',
    500: '#7e8124',
    950: '#000000',
  },
}
SCSS
$custom: #7e8124;
$custom-light: #a6a565;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8124",
  "rgb": {
    "r": 126,
    "g": 129,
    "b": 36
  },
  "hsl": {
    "h": 61.935,
    "s": 56.364,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58282,
    "c": 0.11306,
    "h": 111.3
  },
  "luminance": 0.20264
}

Semantic roles & 50–950 ramp

primary
#7E8124
secondary
#524EB2
accent
#48E04D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8124

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

Preview Lab → · Contrast checker → · Palette generator →

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