#7B7D18#7B7D18

#7B7D18 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.117 H 110.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#7B7D18
RGBrgb(123, 125, 24)
HSLhsl(61, 68%, 29%)
HSVhsv(61, 81%, 49%)
CMYKcmyk(1.6%, 0%, 80.8%, 51%)
CIE-LABlab(50.62, -13.01, 50.11)
CIE-LCHlch(50.62, 51.78, 104.56°)
OKLaboklab(56.99% -0.0414 0.1091)
OKLCHoklch(56.99% 0.117 110.8)
XYZxyz(15.6674, 18.9446, 3.6953)
Luminance0.1894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7D18 #1A187D
analogous
#7D4D18 #7B7D18 #497D18
triadic
#7B7D18 #187B7D #7D187B
tetradic
#7B7D18 #187D4D #1A187D #7D1849
square
#7B7D18 #187D4D #1A187D #7D1849
split-complementary
#7B7D18 #18497D #4D187D
monochromatic
#191A05 #484A0E #7B7D18 #AEB022 #D5D937

Accessibility & contrast

On white

4.39
#7B7D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#7B7D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B7D18
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7D18#FFFFFF#000000##000000
##7B7D181.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#887A21
Tritanopia (blue-blind)
#84756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7b7d18;
/* rgb */ color: rgb(123, 125, 24);
/* oklch */ color: oklch(57.0% 0.117 110.8);
Tailwind
colors: {
  custom: {
    50: '#a4a25f',
    500: '#7b7d18',
    950: '#000000',
  },
}
SCSS
$custom: #7b7d18;
$custom-light: #a4a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7d18",
  "rgb": {
    "r": 123,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 61.188,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56987,
    "c": 0.11666,
    "h": 110.8
  },
  "luminance": 0.18944
}

Semantic roles & 50–950 ramp

primary
#7B7D18
secondary
#423FB2
accent
#3DEB41
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7B7D18

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

Preview Lab → · Contrast checker → · Palette generator →

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