#7E8B2A#7E8B2A

#7E8B2A is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 60.7% C 0.121 H 116.7°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7E8B2A
RGBrgb(126, 139, 42)
HSLhsl(68, 54%, 35%)
HSVhsv(68, 70%, 55%)
CMYKcmyk(9.4%, 0%, 69.8%, 45.5%)
CIE-LABlab(55.14, -18.17, 47.93)
CIE-LCHlch(55.14, 51.25, 110.76°)
OKLaboklab(60.71% -0.0542 0.1077)
OKLCHoklch(60.71% 0.121 116.7)
XYZxyz(18.2551, 23.0683, 5.6810)
Luminance0.2307 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B2A #372A8B
analogous
#8B672A #7E8B2A #4D8B2A
triadic
#7E8B2A #2A7E8B #8B2A7E
tetradic
#7E8B2A #2A8B67 #372A8B #8B2A4D
square
#7E8B2A #2A8B67 #372A8B #8B2A4D
split-complementary
#7E8B2A #2A4D8B #672A8B
monochromatic
#292D0E #535C1C #7E8B2A #A9BA38 #C0CF60

Accessibility & contrast

On white

3.74
#7E8B2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#7E8B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8B2A
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8B2A#FFFFFF#000000##000000
##7E8B2A1.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#95841B
Deuteranopia (green-blind)
#938531
Tritanopia (blue-blind)
#868378
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b2a;
/* rgb */ color: rgb(126, 139, 42);
/* oklch */ color: oklch(60.7% 0.121 116.7);
Tailwind
colors: {
  custom: {
    50: '#a6ac6a',
    500: '#7e8b2a',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b2a;
$custom-light: #a6ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b2a",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 68.041,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60706,
    "c": 0.12052,
    "h": 116.7
  },
  "luminance": 0.23068
}

Semantic roles & 50–950 ramp

primary
#7E8B2A
secondary
#685CB5
accent
#4BDD5E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7E8B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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