#7B7817#7B7817

#7B7817 is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.8% C 0.112 H 107.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7B7817
RGBrgb(123, 120, 23)
HSLhsl(58, 68%, 29%)
HSVhsv(58, 81%, 48%)
CMYKcmyk(0%, 2.4%, 81.3%, 51.8%)
CIE-LABlab(49.14, -10.32, 49.11)
CIE-LCHlch(49.14, 50.18, 101.87°)
OKLaboklab(55.8% -0.034 0.1067)
OKLCHoklch(55.8% 0.112 107.7)
XYZxyz(15.0401, 17.7063, 3.4359)
Luminance0.1771 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7817 #171A7B
analogous
#7B4617 #7B7817 #4C7B17
triadic
#7B7817 #177B78 #78177B
tetradic
#7B7817 #177B46 #171A7B #7B174C
square
#7B7817 #177B46 #171A7B #7B174C
split-complementary
#7B7817 #174C7B #46177B
monochromatic
#1A1905 #47460D #7B7817 #AFAA21 #D9D433

Accessibility & contrast

On white

4.62
#7B7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#7B7817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B7817
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7817#FFFFFF#000000##FFFFFF
##7B78171.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#84761F
Tritanopia (blue-blind)
#857066
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7b7817;
/* rgb */ color: rgb(123, 120, 23);
/* oklch */ color: oklch(55.8% 0.112 107.7);
Tailwind
colors: {
  custom: {
    50: '#a59e5e',
    500: '#7b7817',
    950: '#000000',
  },
}
SCSS
$custom: #7b7817;
$custom-light: #a59e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7817",
  "rgb": {
    "r": 123,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 58.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.558,
    "c": 0.112,
    "h": 107.7
  },
  "luminance": 0.17706
}

Semantic roles & 50–950 ramp

primary
#7B7817
secondary
#3E41B0
accent
#42EB3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7B7817

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

Preview Lab → · Contrast checker → · Palette generator →

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