#7B8112#7B8112

#7B8112 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#7B8112
RGBrgb(123, 129, 18)
HSLhsl(63, 76%, 29%)
HSVhsv(63, 86%, 51%)
CMYKcmyk(4.7%, 0%, 86%, 49.4%)
CIE-LABlab(51.79, -15.37, 52.84)
CIE-LCHlch(51.79, 55.03, 106.22°)
OKLaboklab(57.91% -0.0484 0.1138)
OKLCHoklch(57.91% 0.124 113)
XYZxyz(16.1284, 19.9555, 3.5743)
Luminance0.1996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8112 #181281
analogous
#815012 #7B8112 #448112
triadic
#7B8112 #127B81 #81127B
tetradic
#7B8112 #128150 #181281 #811244
square
#7B8112 #128150 #181281 #811244
split-complementary
#7B8112 #124481 #501281
monochromatic
#1A1B04 #484B0B #7B8112 #AEB719 #D8E22C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8112#FFFFFF#000000##000000
##7B81121.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)
#8C7D1E
Tritanopia (blue-blind)
#84796E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7b8112;
/* rgb */ color: rgb(123, 129, 18);
/* oklch */ color: oklch(57.9% 0.124 113.0);
Tailwind
colors: {
  custom: {
    50: '#a5a55d',
    500: '#7b8112',
    950: '#000000',
  },
}
SCSS
$custom: #7b8112;
$custom-light: #a5a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8112",
  "rgb": {
    "r": 123,
    "g": 129,
    "b": 18
  },
  "hsl": {
    "h": 63.243,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.57912,
    "c": 0.12366,
    "h": 113
  },
  "luminance": 0.19955
}

Semantic roles & 50–950 ramp

primary
#7B8112
secondary
#3F38B7
accent
#36F240
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8112

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

Preview Lab → · Contrast checker → · Palette generator →

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