#7B7C18#7B7C18

#7B7C18 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.116 H 110.2°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7B7C18
RGBrgb(123, 124, 24)
HSLhsl(61, 68%, 29%)
HSVhsv(61, 81%, 49%)
CMYKcmyk(0.8%, 0%, 80.6%, 51.4%)
CIE-LABlab(50.33, -12.47, 49.85)
CIE-LCHlch(50.33, 51.38, 104.05°)
OKLaboklab(56.75% -0.0399 0.1085)
OKLCHoklch(56.75% 0.116 110.2)
XYZxyz(15.5415, 18.6927, 3.6533)
Luminance0.1869 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7C18 #19187C
analogous
#7C4B18 #7B7C18 #497C18
triadic
#7B7C18 #187B7C #7C187B
tetradic
#7B7C18 #187C4B #19187C #7C1849
square
#7B7C18 #187C4B #19187C #7C1849
split-complementary
#7B7C18 #18497C #4B187C
monochromatic
#191A05 #48490E #7B7C18 #AEAF22 #D7D836

Accessibility & contrast

On white

4.43
#7B7C18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#7B7C18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B7C18
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7C18#FFFFFF#000000##000000
##7B7C181.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#877921
Tritanopia (blue-blind)
#84746A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7b7c18;
/* rgb */ color: rgb(123, 124, 24);
/* oklch */ color: oklch(56.8% 0.116 110.2);
Tailwind
colors: {
  custom: {
    50: '#a4a15f',
    500: '#7b7c18',
    950: '#000000',
  },
}
SCSS
$custom: #7b7c18;
$custom-light: #a4a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7c18",
  "rgb": {
    "r": 123,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 60.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5675,
    "c": 0.11561,
    "h": 110.2
  },
  "luminance": 0.18692
}

Semantic roles & 50–950 ramp

primary
#7B7C18
secondary
#403FB1
accent
#3DEA3F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7B7C18

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

Preview Lab → · Contrast checker → · Palette generator →

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