#7B6217#7B6217

#7B6217 is a mid, moderate yellow. Relative luminance 0.130; OKLCH L 50.8% C 0.094 H 89.1°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#7B6217
RGBrgb(123, 98, 23)
HSLhsl(45, 68%, 29%)
HSVhsv(45, 81%, 48%)
CMYKcmyk(0%, 20.3%, 81.3%, 51.8%)
CIE-LABlab(42.78, 2.21, 43.36)
CIE-LCHlch(42.78, 43.41, 87.08°)
OKLaboklab(50.76% 0.0014 0.0944)
OKLCHoklch(50.76% 0.094 89.1)
XYZxyz(12.6915, 13.0090, 2.6530)
Luminance0.1301 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B6217 #17307B
analogous
#7B3017 #7B6217 #627B17
triadic
#7B6217 #177B62 #62177B
tetradic
#7B6217 #177B30 #17307B #7B1762
square
#7B6217 #177B30 #17307B #7B1762
split-complementary
#7B6217 #17627B #30177B
monochromatic
#1A1505 #47390D #7B6217 #AF8B21 #D9B033

Accessibility & contrast

On white

5.83
#7B6217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7B6217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B6217
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B6217#FFFFFF#000000##FFFFFF
##7B62171.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6108
Deuteranopia (green-blind)
#74681B
Tritanopia (blue-blind)
#865954
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b6217;
/* rgb */ color: rgb(123, 98, 23);
/* oklch */ color: oklch(50.8% 0.094 89.1);
Tailwind
colors: {
  custom: {
    50: '#a58e5b',
    500: '#7b6217',
    950: '#000000',
  },
}
SCSS
$custom: #7b6217;
$custom-light: #a58e5b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b6217",
  "rgb": {
    "r": 123,
    "g": 98,
    "b": 23
  },
  "hsl": {
    "h": 45,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50755,
    "c": 0.0944,
    "h": 89.1
  },
  "luminance": 0.13008
}

Semantic roles & 50–950 ramp

primary
#7B6217
secondary
#3E5AB0
accent
#68EB3C
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #7B6217

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

Preview Lab → · Contrast checker → · Palette generator →

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