#7D8A1F#7D8A1F

#7D8A1F is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.127 H 116.5°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7D8A1F
RGBrgb(125, 138, 31)
HSLhsl(67, 63%, 33%)
HSVhsv(67, 78%, 54%)
CMYKcmyk(9.4%, 0%, 77.5%, 45.9%)
CIE-LABlab(54.70, -18.69, 51.59)
CIE-LCHlch(54.70, 54.87, 109.91°)
OKLaboklab(60.31% -0.0566 0.1135)
OKLCHoklch(60.31% 0.127 116.5)
XYZxyz(17.7937, 22.6361, 4.7279)
Luminance0.2264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8A1F #2C1F8A
analogous
#8A611F #7D8A1F #478A1F
triadic
#7D8A1F #1F7D8A #8A1F7D
tetradic
#7D8A1F #1F8A61 #2C1F8A #8A1F47
square
#7D8A1F #1F8A61 #2C1F8A #8A1F47
split-complementary
#7D8A1F #1F478A #611F8A
monochromatic
#222609 #505814 #7D8A1F #AABC2A #C6D74C

Accessibility & contrast

On white

3.80
#7D8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#7D8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8A1F
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8A1F#FFFFFF#000000##000000
##7D8A1F1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948205
Deuteranopia (green-blind)
#938429
Tritanopia (blue-blind)
#858276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7d8a1f;
/* rgb */ color: rgb(125, 138, 31);
/* oklch */ color: oklch(60.3% 0.127 116.5);
Tailwind
colors: {
  custom: {
    50: '#a6ac64',
    500: '#7d8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7d8a1f;
$custom-light: #a6ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8a1f",
  "rgb": {
    "r": 125,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 67.29,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60305,
    "c": 0.12681,
    "h": 116.5
  },
  "luminance": 0.22636
}

Semantic roles & 50–950 ramp

primary
#7D8A1F
secondary
#594BBA
accent
#41E655
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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