#7B6817#7B6817

#7B6817 is a mid, moderate yellow. Relative luminance 0.142; OKLCH L 52.1% C 0.098 H 95.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7B6817
RGBrgb(123, 104, 23)
HSLhsl(49, 68%, 29%)
HSVhsv(49, 81%, 48%)
CMYKcmyk(0%, 15.4%, 81.3%, 51.8%)
CIE-LABlab(44.48, -1.28, 44.92)
CIE-LCHlch(44.48, 44.93, 91.64°)
OKLaboklab(52.1% -0.0085 0.0977)
OKLCHoklch(52.1% 0.098 95)
XYZxyz(13.2741, 14.1742, 2.8472)
Luminance0.1417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B6817 #172A7B
analogous
#7B3617 #7B6817 #5C7B17
triadic
#7B6817 #177B68 #68177B
tetradic
#7B6817 #177B36 #172A7B #7B175C
square
#7B6817 #177B36 #172A7B #7B175C
split-complementary
#7B6817 #175C7B #36177B
monochromatic
#1A1605 #473C0D #7B6817 #AF9421 #D9B933

Accessibility & contrast

On white

5.48
#7B6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#7B6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B6817
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B6817#FFFFFF#000000##FFFFFF
##7B68171.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746605
Deuteranopia (green-blind)
#796C1C
Tritanopia (blue-blind)
#865F59
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7b6817;
/* rgb */ color: rgb(123, 104, 23);
/* oklch */ color: oklch(52.1% 0.098 95.0);
Tailwind
colors: {
  custom: {
    50: '#a5925c',
    500: '#7b6817',
    950: '#000000',
  },
}
SCSS
$custom: #7b6817;
$custom-light: #a5925c;
$custom-dark: #000000;
JSON
{
  "hex": "#7b6817",
  "rgb": {
    "r": 123,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 48.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.521,
    "c": 0.0981,
    "h": 95
  },
  "luminance": 0.14173
}

Semantic roles & 50–950 ramp

primary
#7B6817
secondary
#3E54B0
accent
#5EEB3C
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #7B6817

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

Preview Lab → · Contrast checker → · Palette generator →

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