#7D7B1F#7D7B1F

#7D7B1F is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.7% C 0.110 H 108.2°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7D7B1F
RGBrgb(125, 123, 31)
HSLhsl(59, 60%, 31%)
HSVhsv(59, 75%, 49%)
CMYKcmyk(0%, 1.6%, 75.2%, 51%)
CIE-LABlab(50.25, -10.69, 47.40)
CIE-LCHlch(50.25, 48.59, 102.71°)
OKLaboklab(56.74% -0.0344 0.1046)
OKLCHoklch(56.74% 0.11 108.2)
XYZxyz(15.7883, 18.6253, 4.0594)
Luminance0.1862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7B1F #1F217D
analogous
#7D4C1F #7D7B1F #507D1F
triadic
#7D7B1F #1F7D7B #7B1F7D
tetradic
#7D7B1F #1F7D4C #1F217D #7D1F50
square
#7D7B1F #1F7D4C #1F217D #7D1F50
split-complementary
#7D7B1F #1F507D #4C1F7D
monochromatic
#1B1A07 #4C4B13 #7D7B1F #AEAB2B #D1CE45

Accessibility & contrast

On white

4.44
#7D7B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#7D7B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7B1F
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7B1F#FFFFFF#000000##000000
##7D7B1F1.004.444.724.72
#FFFFFF4.441.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#86760D
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#867369
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7d7b1f;
/* rgb */ color: rgb(125, 123, 31);
/* oklch */ color: oklch(56.7% 0.110 108.2);
Tailwind
colors: {
  custom: {
    50: '#a6a062',
    500: '#7d7b1f',
    950: '#000000',
  },
}
SCSS
$custom: #7d7b1f;
$custom-light: #a6a062;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7b1f",
  "rgb": {
    "r": 125,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 58.723,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56742,
    "c": 0.1101,
    "h": 108.2
  },
  "luminance": 0.18625
}

Semantic roles & 50–950 ramp

primary
#7D7B1F
secondary
#484AB0
accent
#48E344
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7D7B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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