#7B7017#7B7017

#7B7017 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 53.9% C 0.104 H 101.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7B7017
RGBrgb(123, 112, 23)
HSLhsl(53, 68%, 29%)
HSVhsv(53, 81%, 48%)
CMYKcmyk(0%, 8.9%, 81.3%, 51.8%)
CIE-LABlab(46.79, -5.86, 47.01)
CIE-LCHlch(46.79, 47.37, 97.11°)
OKLaboklab(53.93% -0.0215 0.1022)
OKLCHoklch(53.93% 0.104 101.9)
XYZxyz(14.1179, 15.8618, 3.1284)
Luminance0.1586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7017 #17227B
analogous
#7B3E17 #7B7017 #547B17
triadic
#7B7017 #177B70 #70177B
tetradic
#7B7017 #177B3E #17227B #7B1754
square
#7B7017 #177B3E #17227B #7B1754
split-complementary
#7B7017 #17547B #3E177B
monochromatic
#1A1705 #47410D #7B7017 #AF9F21 #D9C733

Accessibility & contrast

On white

5.03
#7B7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7B7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B7017
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7017#FFFFFF#000000##FFFFFF
##7B70171.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C01
Deuteranopia (green-blind)
#7E711E
Tritanopia (blue-blind)
#85675F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7b7017;
/* rgb */ color: rgb(123, 112, 23);
/* oklch */ color: oklch(53.9% 0.104 101.9);
Tailwind
colors: {
  custom: {
    50: '#a5985d',
    500: '#7b7017',
    950: '#000000',
  },
}
SCSS
$custom: #7b7017;
$custom-light: #a5985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7017",
  "rgb": {
    "r": 123,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 53.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53932,
    "c": 0.10445,
    "h": 101.9
  },
  "luminance": 0.15861
}

Semantic roles & 50–950 ramp

primary
#7B7017
secondary
#3E4AB0
accent
#50EB3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7B7017

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

Preview Lab → · Contrast checker → · Palette generator →

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