#7D8B1F#7D8B1F

#7D8B1F is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.5% C 0.128 H 117.0°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7D8B1F
RGBrgb(125, 139, 31)
HSLhsl(68, 64%, 33%)
HSVhsv(68, 78%, 55%)
CMYKcmyk(10.1%, 0%, 77.7%, 45.5%)
CIE-LABlab(54.99, -19.21, 51.87)
CIE-LCHlch(54.99, 55.31, 110.32°)
OKLaboklab(60.55% -0.058 0.1141)
OKLCHoklch(60.55% 0.128 117)
XYZxyz(17.9378, 22.9244, 4.7759)
Luminance0.2292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8B1F #2D1F8B
analogous
#8B631F #7D8B1F #478B1F
triadic
#7D8B1F #1F7D8B #8B1F7D
tetradic
#7D8B1F #1F8B63 #2D1F8B #8B1F47
square
#7D8B1F #1F8B63 #2D1F8B #8B1F47
split-complementary
#7D8B1F #1F478B #631F8B
monochromatic
#232709 #505914 #7D8B1F #AABD2A #C5D74D

Accessibility & contrast

On white

3.76
#7D8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#7D8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8B1F
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8B1F#FFFFFF#000000##000000
##7D8B1F1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d8b1f;
/* rgb */ color: rgb(125, 139, 31);
/* oklch */ color: oklch(60.5% 0.128 117.0);
Tailwind
colors: {
  custom: {
    50: '#a6ac64',
    500: '#7d8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #7d8b1f;
$custom-light: #a6ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8b1f",
  "rgb": {
    "r": 125,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 67.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60545,
    "c": 0.12797,
    "h": 117
  },
  "luminance": 0.22924
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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