#7E8B1F#7E8B1F

#7E8B1F is a mid, vivid yellow. Relative luminance 0.230; OKLCH L 60.6% C 0.128 H 116.5°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#7E8B1F
RGBrgb(126, 139, 31)
HSLhsl(67, 64%, 33%)
HSVhsv(67, 78%, 55%)
CMYKcmyk(9.4%, 0%, 77.7%, 45.5%)
CIE-LABlab(55.07, -18.77, 51.97)
CIE-LCHlch(55.07, 55.26, 109.85°)
OKLaboklab(60.63% -0.0569 0.1142)
OKLCHoklch(60.63% 0.128 116.5)
XYZxyz(18.0846, 23.0000, 4.7828)
Luminance0.2300 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8B1F #2C1F8B
analogous
#8B621F #7E8B1F #488B1F
triadic
#7E8B1F #1F7E8B #8B1F7E
tetradic
#7E8B1F #1F8B62 #2C1F8B #8B1F48
square
#7E8B1F #1F8B62 #2C1F8B #8B1F48
split-complementary
#7E8B1F #1F488B #621F8B
monochromatic
#232709 #515914 #7E8B1F #ABBD2A #C7D74D

Accessibility & contrast

On white

3.75
#7E8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#7E8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8B1F
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8B1F#FFFFFF#000000##000000
##7E8B1F1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958304
Deuteranopia (green-blind)
#948529
Tritanopia (blue-blind)
#868377
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7e8b1f;
/* rgb */ color: rgb(126, 139, 31);
/* oklch */ color: oklch(60.6% 0.128 116.5);
Tailwind
colors: {
  custom: {
    50: '#a7ac64',
    500: '#7e8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #7e8b1f;
$custom-light: #a7ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8b1f",
  "rgb": {
    "r": 126,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 67.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60627,
    "c": 0.12761,
    "h": 116.5
  },
  "luminance": 0.23
}

Semantic roles & 50–950 ramp

primary
#7E8B1F
secondary
#594CBA
accent
#41E755
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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