#7E8423#7E8423

#7E8423 is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.0% C 0.117 H 113.0°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7E8423
RGBrgb(126, 132, 35)
HSLhsl(64, 58%, 33%)
HSVhsv(64, 73%, 52%)
CMYKcmyk(4.5%, 0%, 73.5%, 48.2%)
CIE-LABlab(53.02, -14.89, 48.58)
CIE-LCHlch(53.02, 50.81, 107.04°)
OKLaboklab(58.99% -0.0457 0.1078)
OKLCHoklch(58.99% 0.117 113)
XYZxyz(17.1593, 21.0599, 4.7508)
Luminance0.2106 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8423 #292384
analogous
#845923 #7E8423 #4E8423
triadic
#7E8423 #237E84 #84237E
tetradic
#7E8423 #238459 #292384 #84234E
square
#7E8423 #238459 #292384 #84234E
split-complementary
#7E8423 #234E84 #592384
monochromatic
#222309 #505416 #7E8423 #ACB430 #C9D151

Accessibility & contrast

On white

4.03
#7E8423 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#7E8423 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8423
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8423#FFFFFF#000000##000000
##7E84231.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E11
Deuteranopia (green-blind)
#8E802B
Tritanopia (blue-blind)
#877C71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e8423;
/* rgb */ color: rgb(126, 132, 35);
/* oklch */ color: oklch(59.0% 0.117 113.0);
Tailwind
colors: {
  custom: {
    50: '#a6a765',
    500: '#7e8423',
    950: '#000000',
  },
}
SCSS
$custom: #7e8423;
$custom-light: #a6a765;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8423",
  "rgb": {
    "r": 126,
    "g": 132,
    "b": 35
  },
  "hsl": {
    "h": 63.711,
    "s": 58.084,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58985,
    "c": 0.11712,
    "h": 113
  },
  "luminance": 0.21059
}

Semantic roles & 50–950 ramp

primary
#7E8423
secondary
#554EB4
accent
#46E150
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E8423

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

Preview Lab → · Contrast checker → · Palette generator →

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