#7B7917#7B7917

#7B7917 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.0% C 0.113 H 108.3°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7B7917
RGBrgb(123, 121, 23)
HSLhsl(59, 68%, 29%)
HSVhsv(59, 81%, 48%)
CMYKcmyk(0%, 1.6%, 81.3%, 51.8%)
CIE-LABlab(49.43, -10.87, 49.37)
CIE-LCHlch(49.43, 50.55, 102.42°)
OKLaboklab(56.04% -0.0355 0.1073)
OKLCHoklch(56.04% 0.113 108.3)
XYZxyz(15.1610, 17.9481, 3.4761)
Luminance0.1795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7917 #17197B
analogous
#7B4717 #7B7917 #4B7B17
triadic
#7B7917 #177B79 #79177B
tetradic
#7B7917 #177B47 #17197B #7B174B
square
#7B7917 #177B47 #17197B #7B174B
split-complementary
#7B7917 #174B7B #47177B
monochromatic
#1A1905 #47460D #7B7917 #AFAC21 #D9D633

Accessibility & contrast

On white

4.58
#7B7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#7B7917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B7917
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7917#FFFFFF#000000##000000
##7B79171.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#857720
Tritanopia (blue-blind)
#847167
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7b7917;
/* rgb */ color: rgb(123, 121, 23);
/* oklch */ color: oklch(56.0% 0.113 108.3);
Tailwind
colors: {
  custom: {
    50: '#a59f5e',
    500: '#7b7917',
    950: '#000000',
  },
}
SCSS
$custom: #7b7917;
$custom-light: #a59f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7917",
  "rgb": {
    "r": 123,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 58.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56035,
    "c": 0.113,
    "h": 108.3
  },
  "luminance": 0.17948
}

Semantic roles & 50–950 ramp

primary
#7B7917
secondary
#3E40B0
accent
#40EB3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7B7917

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

Preview Lab → · Contrast checker → · Palette generator →

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