#7E8A25#7E8A25

#7E8A25 is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.4% C 0.123 H 116.1°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7E8A25
RGBrgb(126, 138, 37)
HSLhsl(67, 58%, 34%)
HSVhsv(67, 73%, 54%)
CMYKcmyk(8.7%, 0%, 73.2%, 45.9%)
CIE-LABlab(54.81, -17.94, 49.57)
CIE-LCHlch(54.81, 52.71, 109.90°)
OKLaboklab(60.43% -0.054 0.1102)
OKLCHoklch(60.43% 0.123 116.1)
XYZxyz(18.0270, 22.7464, 5.1907)
Luminance0.2275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8A25 #31258A
analogous
#8A6425 #7E8A25 #4C8A25
triadic
#7E8A25 #257E8A #8A257E
tetradic
#7E8A25 #258A64 #31258A #8A254C
square
#7E8A25 #258A64 #31258A #8A254C
split-complementary
#7E8A25 #254C8A #64258A
monochromatic
#26290B #525A18 #7E8A25 #AABA32 #C3D257

Accessibility & contrast

On white

3.78
#7E8A25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#7E8A25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8A25
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8A25#FFFFFF#000000##000000
##7E8A251.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948313
Deuteranopia (green-blind)
#93842D
Tritanopia (blue-blind)
#868276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7e8a25;
/* rgb */ color: rgb(126, 138, 37);
/* oklch */ color: oklch(60.4% 0.123 116.1);
Tailwind
colors: {
  custom: {
    50: '#a6ac67',
    500: '#7e8a25',
    950: '#000000',
  },
}
SCSS
$custom: #7e8a25;
$custom-light: #a6ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8a25",
  "rgb": {
    "r": 126,
    "g": 138,
    "b": 37
  },
  "hsl": {
    "h": 67.129,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60428,
    "c": 0.12277,
    "h": 116.1
  },
  "luminance": 0.22746
}

Semantic roles & 50–950 ramp

primary
#7E8A25
secondary
#6054B7
accent
#47E159
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8A25

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

Preview Lab → · Contrast checker → · Palette generator →

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