#7B7A1F#7B7A1F

#7B7A1F is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.3% C 0.109 H 108.8°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7B7A1F
RGBrgb(123, 122, 31)
HSLhsl(59, 60%, 30%)
HSVhsv(59, 75%, 48%)
CMYKcmyk(0%, 0.8%, 74.8%, 51.8%)
CIE-LABlab(49.77, -11.07, 46.89)
CIE-LCHlch(49.77, 48.18, 103.28°)
OKLaboklab(56.32% -0.0353 0.1036)
OKLCHoklch(56.32% 0.109 108.8)
XYZxyz(15.3758, 18.2294, 4.0047)
Luminance0.1823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7A1F #1F207B
analogous
#7B4C1F #7B7A1F #4E7B1F
triadic
#7B7A1F #1F7B7A #7A1F7B
tetradic
#7B7A1F #1F7B4C #1F207B #7B1F4E
square
#7B7A1F #1F7B4C #1F207B #7B1F4E
split-complementary
#7B7A1F #1F4E7B #4C1F7B
monochromatic
#191906 #4A4A13 #7B7A1F #ACAA2B #D0CE44

Accessibility & contrast

On white

4.52
#7B7A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7B7A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B7A1F
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7A1F#FFFFFF#000000##000000
##7B7A1F1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#84750E
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#847268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7b7a1f;
/* rgb */ color: rgb(123, 122, 31);
/* oklch */ color: oklch(56.3% 0.109 108.8);
Tailwind
colors: {
  custom: {
    50: '#a4a062',
    500: '#7b7a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7b7a1f;
$custom-light: #a4a062;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7a1f",
  "rgb": {
    "r": 123,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 59.348,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56321,
    "c": 0.10944,
    "h": 108.8
  },
  "luminance": 0.18229
}

Semantic roles & 50–950 ramp

primary
#7B7A1F
secondary
#4849AE
accent
#47E345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7B7A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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