#7B7217#7B7217

#7B7217 is a mid, moderate yellow. Relative luminance 0.163; OKLCH L 54.4% C 0.106 H 103.4°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7B7217
RGBrgb(123, 114, 23)
HSLhsl(55, 68%, 29%)
HSVhsv(55, 81%, 48%)
CMYKcmyk(0%, 7.3%, 81.3%, 51.8%)
CIE-LABlab(47.38, -6.99, 47.53)
CIE-LCHlch(47.38, 48.04, 98.36°)
OKLaboklab(54.4% -0.0246 0.1033)
OKLCHoklch(54.4% 0.106 103.4)
XYZxyz(14.3410, 16.3081, 3.2028)
Luminance0.1631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7217 #17207B
analogous
#7B4017 #7B7217 #527B17
triadic
#7B7217 #177B72 #72177B
tetradic
#7B7217 #177B40 #17207B #7B1752
square
#7B7217 #177B40 #17207B #7B1752
split-complementary
#7B7217 #17527B #40177B
monochromatic
#1A1805 #47420D #7B7217 #AFA221 #D9CA33

Accessibility & contrast

On white

4.93
#7B7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7B7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B7217
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7217#FFFFFF#000000##FFFFFF
##7B72171.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#80721E
Tritanopia (blue-blind)
#856961
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7b7217;
/* rgb */ color: rgb(123, 114, 23);
/* oklch */ color: oklch(54.4% 0.106 103.4);
Tailwind
colors: {
  custom: {
    50: '#a59a5d',
    500: '#7b7217',
    950: '#000000',
  },
}
SCSS
$custom: #7b7217;
$custom-light: #a59a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7217",
  "rgb": {
    "r": 123,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 54.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54396,
    "c": 0.10624,
    "h": 103.4
  },
  "luminance": 0.16307
}

Semantic roles & 50–950 ramp

primary
#7B7217
secondary
#3E48B0
accent
#4CEB3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7B7217

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

Preview Lab → · Contrast checker → · Palette generator →

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