#7B7018#7B7018

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

Color values

HEX#7B7018
RGBrgb(123, 112, 24)
HSLhsl(53, 67%, 29%)
HSVhsv(53, 80%, 48%)
CMYKcmyk(0%, 8.9%, 80.5%, 51.8%)
CIE-LABlab(46.80, -5.82, 46.67)
CIE-LCHlch(46.80, 47.03, 97.11°)
OKLaboklab(53.94% -0.0213 0.1017)
OKLCHoklch(53.94% 0.104 101.8)
XYZxyz(14.1281, 15.8659, 3.1822)
Luminance0.1587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7018 #18237B
analogous
#7B3F18 #7B7018 #557B18
triadic
#7B7018 #187B70 #70187B
tetradic
#7B7018 #187B3F #18237B #7B1855
square
#7B7018 #187B3F #18237B #7B1855
split-complementary
#7B7018 #18557B #3F187B
monochromatic
#1A1705 #48410E #7B7018 #AE9F22 #D8C636

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B7018#FFFFFF#000000##FFFFFF
##7B70181.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)
#7B6C03
Deuteranopia (green-blind)
#7E711F
Tritanopia (blue-blind)
#856760
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7b7018;
/* rgb */ color: rgb(123, 112, 24);
/* oklch */ color: oklch(53.9% 0.104 101.8);
Tailwind
colors: {
  custom: {
    50: '#a5985d',
    500: '#7b7018',
    950: '#000000',
  },
}
SCSS
$custom: #7b7018;
$custom-light: #a5985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7018",
  "rgb": {
    "r": 123,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 53.333,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53938,
    "c": 0.1039,
    "h": 101.8
  },
  "luminance": 0.15865
}

Semantic roles & 50–950 ramp

primary
#7B7018
secondary
#3F4CB0
accent
#51EA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7B7018

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

Preview Lab → · Contrast checker → · Palette generator →

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