#7B8111#7B8111

#7B8111 is a mid, vivid yellow. Relative luminance 0.200; OKLCH L 57.9% C 0.124 H 113.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7B8111
RGBrgb(123, 129, 17)
HSLhsl(63, 77%, 29%)
HSVhsv(63, 87%, 51%)
CMYKcmyk(4.7%, 0%, 86.8%, 49.4%)
CIE-LABlab(51.78, -15.40, 53.08)
CIE-LCHlch(51.78, 55.27, 106.18°)
OKLaboklab(57.91% -0.0485 0.1142)
OKLCHoklch(57.91% 0.124 113)
XYZxyz(16.1204, 19.9523, 3.5322)
Luminance0.1995 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8111 #171181
analogous
#814F11 #7B8111 #438111
triadic
#7B8111 #117B81 #81117B
tetradic
#7B8111 #11814F #171181 #811143
square
#7B8111 #11814F #171181 #811143
split-complementary
#7B8111 #114381 #4F1181
monochromatic
#1A1B04 #474B0A #7B8111 #AFB718 #D9E32A

Accessibility & contrast

On white

4.21
#7B8111 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#7B8111 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8111
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8111#FFFFFF#000000##000000
##7B81111.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8C7D1D
Tritanopia (blue-blind)
#84796D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7b8111;
/* rgb */ color: rgb(123, 129, 17);
/* oklch */ color: oklch(57.9% 0.124 113.0);
Tailwind
colors: {
  custom: {
    50: '#a5a55d',
    500: '#7b8111',
    950: '#000000',
  },
}
SCSS
$custom: #7b8111;
$custom-light: #a5a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8111",
  "rgb": {
    "r": 123,
    "g": 129,
    "b": 17
  },
  "hsl": {
    "h": 63.214,
    "s": 76.712,
    "l": 28.627
  },
  "oklch": {
    "l": 0.57907,
    "c": 0.12404,
    "h": 113
  },
  "luminance": 0.19952
}

Semantic roles & 50–950 ramp

primary
#7B8111
secondary
#3E37B7
accent
#35F33F
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8111

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

Preview Lab → · Contrast checker → · Palette generator →

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