#7B6918#7B6918

#7B6918 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.3% C 0.098 H 95.8°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7B6918
RGBrgb(123, 105, 24)
HSLhsl(49, 67%, 29%)
HSVhsv(49, 80%, 48%)
CMYKcmyk(0%, 14.6%, 80.5%, 51.8%)
CIE-LABlab(44.77, -1.82, 44.82)
CIE-LCHlch(44.77, 44.85, 92.33°)
OKLaboklab(52.33% -0.01 0.0978)
OKLCHoklch(52.33% 0.098 95.8)
XYZxyz(13.3855, 14.3808, 2.9347)
Luminance0.1438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B6918 #182A7B
analogous
#7B3818 #7B6918 #5C7B18
triadic
#7B6918 #187B69 #69187B
tetradic
#7B6918 #187B38 #182A7B #7B185C
square
#7B6918 #187B38 #182A7B #7B185C
split-complementary
#7B6918 #185C7B #38187B
monochromatic
#1A1605 #483D0E #7B6918 #AE9522 #D8BA36

Accessibility & contrast

On white

5.42
#7B6918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7B6918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B6918
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B6918#FFFFFF#000000##FFFFFF
##7B69181.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756707
Deuteranopia (green-blind)
#796C1D
Tritanopia (blue-blind)
#85605A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7b6918;
/* rgb */ color: rgb(123, 105, 24);
/* oklch */ color: oklch(52.3% 0.098 95.8);
Tailwind
colors: {
  custom: {
    50: '#a5935c',
    500: '#7b6918',
    950: '#000000',
  },
}
SCSS
$custom: #7b6918;
$custom-light: #a5935c;
$custom-dark: #000000;
JSON
{
  "hex": "#7b6918",
  "rgb": {
    "r": 123,
    "g": 105,
    "b": 24
  },
  "hsl": {
    "h": 49.091,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52334,
    "c": 0.09826,
    "h": 95.8
  },
  "luminance": 0.1438
}

Semantic roles & 50–950 ramp

primary
#7B6918
secondary
#3F54B0
accent
#5DEA3E
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7B6918

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

Preview Lab → · Contrast checker → · Palette generator →

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