#7D8B2F#7D8B2F

#7D8B2F is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 60.7% C 0.117 H 117.4°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7D8B2F
RGBrgb(125, 139, 47)
HSLhsl(69, 49%, 36%)
HSVhsv(69, 66%, 55%)
CMYKcmyk(10.1%, 0%, 66.2%, 45.5%)
CIE-LABlab(55.10, -18.27, 45.75)
CIE-LCHlch(55.10, 49.27, 111.77°)
OKLaboklab(60.67% -0.0539 0.1039)
OKLCHoklch(60.67% 0.117 117.4)
XYZxyz(18.2035, 23.0306, 6.1752)
Luminance0.2303 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8B2F #3D2F8B
analogous
#8B6B2F #7D8B2F #4F8B2F
triadic
#7D8B2F #2F7D8B #8B2F7D
tetradic
#7D8B2F #2F8B6B #3D2F8B #8B2F4F
square
#7D8B2F #2F8B6B #3D2F8B #8B2F4F
split-complementary
#7D8B2F #2F4F8B #6B2F8B
monochromatic
#2B3010 #545D20 #7D8B2F #A6B93E #BDCC68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D8B2F#FFFFFF#000000##000000
##7D8B2F1.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948423
Deuteranopia (green-blind)
#938435
Tritanopia (blue-blind)
#848378
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7d8b2f;
/* rgb */ color: rgb(125, 139, 47);
/* oklch */ color: oklch(60.7% 0.117 117.4);
Tailwind
colors: {
  custom: {
    50: '#a5ac6c',
    500: '#7d8b2f',
    950: '#000000',
  },
}
SCSS
$custom: #7d8b2f;
$custom-light: #a5ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8b2f",
  "rgb": {
    "r": 125,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 69.13,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60668,
    "c": 0.11704,
    "h": 117.4
  },
  "luminance": 0.2303
}

Semantic roles & 50–950 ramp

primary
#7D8B2F
secondary
#6F63B3
accent
#4FD964
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7D8B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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