#7E8D1F#7E8D1F

#7E8D1F is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.1% C 0.130 H 117.4°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7E8D1F
RGBrgb(126, 141, 31)
HSLhsl(68, 64%, 34%)
HSVhsv(68, 78%, 55%)
CMYKcmyk(10.6%, 0%, 78%, 44.7%)
CIE-LABlab(55.67, -19.80, 52.52)
CIE-LCHlch(55.67, 56.13, 110.65°)
OKLaboklab(61.11% -0.0597 0.1154)
OKLCHoklch(61.11% 0.13 117.4)
XYZxyz(18.3768, 23.5845, 4.8802)
Luminance0.2358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8D1F #2E1F8D
analogous
#8D651F #7E8D1F #478D1F
triadic
#7E8D1F #1F7E8D #8D1F7E
tetradic
#7E8D1F #1F8D65 #2E1F8D #8D1F47
square
#7E8D1F #1F8D65 #2E1F8D #8D1F47
split-complementary
#7E8D1F #1F478D #651F8D
monochromatic
#242909 #515B14 #7E8D1F #ABBF2A #C5D84E

Accessibility & contrast

On white

3.67
#7E8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#7E8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8D1F
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8D1F#FFFFFF#000000##000000
##7E8D1F1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#958629
Tritanopia (blue-blind)
#868578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7e8d1f;
/* rgb */ color: rgb(126, 141, 31);
/* oklch */ color: oklch(61.1% 0.130 117.4);
Tailwind
colors: {
  custom: {
    50: '#a7ae64',
    500: '#7e8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #7e8d1f;
$custom-light: #a7ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8d1f",
  "rgb": {
    "r": 126,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 68.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61107,
    "c": 0.12994,
    "h": 117.4
  },
  "luminance": 0.23584
}

Semantic roles & 50–950 ramp

primary
#7E8D1F
secondary
#5C4DBB
accent
#41E757
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7E8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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