#7E8438#7E8438

#7E8438 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.2% C 0.100 H 113.2°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7E8438
RGBrgb(126, 132, 56)
HSLhsl(65, 40%, 37%)
HSVhsv(65, 58%, 52%)
CMYKcmyk(4.5%, 0%, 57.6%, 48.2%)
CIE-LABlab(53.19, -13.42, 39.52)
CIE-LCHlch(53.19, 41.74, 108.76°)
OKLaboklab(59.19% -0.0394 0.0919)
OKLCHoklch(59.19% 0.1 113.2)
XYZxyz(17.5696, 21.2240, 6.9117)
Luminance0.2122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8438 #3E3884
analogous
#846438 #7E8438 #588438
triadic
#7E8438 #387E84 #84387E
tetradic
#7E8438 #388464 #3E3884 #843858
square
#7E8438 #388464 #3E3884 #843858
split-complementary
#7E8438 #385884 #643884
monochromatic
#2C2E14 #555926 #7E8438 #A7AF4A #BDC473

Accessibility & contrast

On white

4.00
#7E8438 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#7E8438 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8438
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8438#FFFFFF#000000##000000
##7E84381.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7E30
Deuteranopia (green-blind)
#8D803C
Tritanopia (blue-blind)
#867D73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e8438;
/* rgb */ color: rgb(126, 132, 56);
/* oklch */ color: oklch(59.2% 0.100 113.2);
Tailwind
colors: {
  custom: {
    50: '#a5a771',
    500: '#7e8438',
    950: '#000000',
  },
}
SCSS
$custom: #7e8438;
$custom-light: #a5a771;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8438",
  "rgb": {
    "r": 126,
    "g": 132,
    "b": 56
  },
  "hsl": {
    "h": 64.737,
    "s": 40.426,
    "l": 36.863
  },
  "oklch": {
    "l": 0.59185,
    "c": 0.09994,
    "h": 113.2
  },
  "luminance": 0.21224
}

Semantic roles & 50–950 ramp

primary
#7E8438
secondary
#706BAC
accent
#58D061
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #7E8438

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

Preview Lab → · Contrast checker → · Palette generator →

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