#7B7B1F#7B7B1F

#7B7B1F is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.111 H 109.5°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7B7B1F
RGBrgb(123, 123, 31)
HSLhsl(60, 60%, 30%)
HSVhsv(60, 75%, 48%)
CMYKcmyk(0%, 0%, 74.8%, 51.8%)
CIE-LABlab(50.07, -11.61, 47.17)
CIE-LCHlch(50.07, 48.58, 103.83°)
OKLaboklab(56.56% -0.0368 0.1042)
OKLCHoklch(56.56% 0.111 109.5)
XYZxyz(15.4992, 18.4763, 4.0459)
Luminance0.1848 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7B1F #1F1F7B
analogous
#7B4D1F #7B7B1F #4D7B1F
triadic
#7B7B1F #1F7B7B #7B1F7B
tetradic
#7B7B1F #1F7B4D #1F1F7B #7B1F4D
square
#7B7B1F #1F7B4D #1F1F7B #7B1F4D
split-complementary
#7B7B1F #1F4D7B #4D1F7B
monochromatic
#191906 #4A4A13 #7B7B1F #ACAC2B #D0D044

Accessibility & contrast

On white

4.47
#7B7B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7B7B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B7B1F
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7B1F#FFFFFF#000000##000000
##7B7B1F1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#85760D
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#847369
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7b7b1f;
/* rgb */ color: rgb(123, 123, 31);
/* oklch */ color: oklch(56.6% 0.111 109.5);
Tailwind
colors: {
  custom: {
    50: '#a4a062',
    500: '#7b7b1f',
    950: '#000000',
  },
}
SCSS
$custom: #7b7b1f;
$custom-light: #a4a062;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7b1f",
  "rgb": {
    "r": 123,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 60,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56557,
    "c": 0.11051,
    "h": 109.5
  },
  "luminance": 0.18476
}

Semantic roles & 50–950 ramp

primary
#7B7B1F
secondary
#4848AE
accent
#45E345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7B7B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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