#7E8E1F#7E8E1F

#7E8E1F is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.3% C 0.131 H 117.8°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7E8E1F
RGBrgb(126, 142, 31)
HSLhsl(69, 64%, 34%)
HSVhsv(69, 78%, 56%)
CMYKcmyk(11.3%, 0%, 78.2%, 44.3%)
CIE-LABlab(55.97, -20.31, 52.80)
CIE-LCHlch(55.97, 56.57, 111.04°)
OKLaboklab(61.35% -0.0611 0.116)
OKLCHoklch(61.35% 0.131 117.8)
XYZxyz(18.5250, 23.8807, 4.9296)
Luminance0.2388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8E1F #2F1F8E
analogous
#8E671F #7E8E1F #478E1F
triadic
#7E8E1F #1F7E8E #8E1F7E
tetradic
#7E8E1F #1F8E67 #2F1F8E #8E1F47
square
#7E8E1F #1F8E67 #2F1F8E #8E1F47
split-complementary
#7E8E1F #1F478E #671F8E
monochromatic
#252A09 #515C14 #7E8E1F #ABC02A #C5D94F

Accessibility & contrast

On white

3.64
#7E8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#7E8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8E1F
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8E1F#FFFFFF#000000##000000
##7E8E1F1.003.645.785.78
#FFFFFF3.641.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988602
Deuteranopia (green-blind)
#968729
Tritanopia (blue-blind)
#868679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7e8e1f;
/* rgb */ color: rgb(126, 142, 31);
/* oklch */ color: oklch(61.3% 0.131 117.8);
Tailwind
colors: {
  custom: {
    50: '#a7af65',
    500: '#7e8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #7e8e1f;
$custom-light: #a7af65;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8e1f",
  "rgb": {
    "r": 126,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 68.649,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.61348,
    "c": 0.13112,
    "h": 117.8
  },
  "luminance": 0.23881
}

Semantic roles & 50–950 ramp

primary
#7E8E1F
secondary
#5D4DBB
accent
#41E759
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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