#7E8925#7E8925

#7E8925 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.122 H 115.6°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7E8925
RGBrgb(126, 137, 37)
HSLhsl(67, 57%, 34%)
HSVhsv(67, 73%, 54%)
CMYKcmyk(8%, 0%, 73%, 46.3%)
CIE-LABlab(54.51, -17.42, 49.28)
CIE-LCHlch(54.51, 52.26, 109.47°)
OKLaboklab(60.19% -0.0526 0.1096)
OKLCHoklch(60.19% 0.122 115.6)
XYZxyz(17.8842, 22.4608, 5.1431)
Luminance0.2246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8925 #302589
analogous
#896225 #7E8925 #4C8925
triadic
#7E8925 #257E89 #89257E
tetradic
#7E8925 #258962 #302589 #89254C
square
#7E8925 #258962 #302589 #89254C
split-complementary
#7E8925 #254C89 #622589
monochromatic
#25290B #525918 #7E8925 #AAB932 #C4D257

Accessibility & contrast

On white

3.82
#7E8925 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#7E8925 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8925
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8925#FFFFFF#000000##000000
##7E89251.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938213
Deuteranopia (green-blind)
#92832D
Tritanopia (blue-blind)
#868176
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e8925;
/* rgb */ color: rgb(126, 137, 37);
/* oklch */ color: oklch(60.2% 0.122 115.6);
Tailwind
colors: {
  custom: {
    50: '#a6ab67',
    500: '#7e8925',
    950: '#000000',
  },
}
SCSS
$custom: #7e8925;
$custom-light: #a6ab67;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8925",
  "rgb": {
    "r": 126,
    "g": 137,
    "b": 37
  },
  "hsl": {
    "h": 66.6,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60189,
    "c": 0.12159,
    "h": 115.6
  },
  "luminance": 0.22461
}

Semantic roles & 50–950 ramp

primary
#7E8925
secondary
#5F54B6
accent
#47E158
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8925

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

Preview Lab → · Contrast checker → · Palette generator →

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