#7E8725#7E8725

#7E8725 is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 59.7% C 0.119 H 114.6°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7E8725
RGBrgb(126, 135, 37)
HSLhsl(66, 57%, 34%)
HSVhsv(66, 73%, 53%)
CMYKcmyk(6.7%, 0%, 72.6%, 47.1%)
CIE-LABlab(53.92, -16.37, 48.69)
CIE-LCHlch(53.92, 51.37, 108.58°)
OKLaboklab(59.71% -0.0497 0.1084)
OKLCHoklch(59.71% 0.119 114.6)
XYZxyz(17.6026, 21.8975, 5.0493)
Luminance0.2190 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8725 #2E2587
analogous
#875F25 #7E8725 #4D8725
triadic
#7E8725 #257E87 #87257E
tetradic
#7E8725 #25875F #2E2587 #87254D
square
#7E8725 #25875F #2E2587 #87254D
split-complementary
#7E8725 #254D87 #5F2587
monochromatic
#24270B #515718 #7E8725 #ABB732 #C5D156

Accessibility & contrast

On white

3.90
#7E8725 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#7E8725 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8725
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8725#FFFFFF#000000##000000
##7E87251.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918014
Deuteranopia (green-blind)
#90822D
Tritanopia (blue-blind)
#867F74
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e8725;
/* rgb */ color: rgb(126, 135, 37);
/* oklch */ color: oklch(59.7% 0.119 114.6);
Tailwind
colors: {
  custom: {
    50: '#a6a967',
    500: '#7e8725',
    950: '#000000',
  },
}
SCSS
$custom: #7e8725;
$custom-light: #a6a967;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8725",
  "rgb": {
    "r": 126,
    "g": 135,
    "b": 37
  },
  "hsl": {
    "h": 65.51,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59712,
    "c": 0.11925,
    "h": 114.6
  },
  "luminance": 0.21897
}

Semantic roles & 50–950 ramp

primary
#7E8725
secondary
#5C53B5
accent
#48E056
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8725

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

Preview Lab → · Contrast checker → · Palette generator →

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