#7B7D17#7B7D17

#7B7D17 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#7B7D17
RGBrgb(123, 125, 23)
HSLhsl(61, 69%, 29%)
HSVhsv(61, 82%, 49%)
CMYKcmyk(1.6%, 0%, 81.6%, 51%)
CIE-LABlab(50.62, -13.05, 50.42)
CIE-LCHlch(50.62, 52.08, 104.51°)
OKLaboklab(56.98% -0.0416 0.1095)
OKLCHoklch(56.98% 0.117 110.8)
XYZxyz(15.6572, 18.9405, 3.6416)
Luminance0.1894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7D17 #19177D
analogous
#7D4C17 #7B7D17 #487D17
triadic
#7B7D17 #177B7D #7D177B
tetradic
#7B7D17 #177D4C #19177D #7D1748
square
#7B7D17 #177D4C #19177D #7D1748
split-complementary
#7B7D17 #17487D #4C177D
monochromatic
#191A05 #48490D #7B7D17 #AEB121 #D7DA35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B7D17#FFFFFF#000000##000000
##7B7D171.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)
#887700
Deuteranopia (green-blind)
#887A20
Tritanopia (blue-blind)
#84756A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7b7d17;
/* rgb */ color: rgb(123, 125, 23);
/* oklch */ color: oklch(57.0% 0.117 110.8);
Tailwind
colors: {
  custom: {
    50: '#a5a25f',
    500: '#7b7d17',
    950: '#000000',
  },
}
SCSS
$custom: #7b7d17;
$custom-light: #a5a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7d17",
  "rgb": {
    "r": 123,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 61.176,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56982,
    "c": 0.11716,
    "h": 110.8
  },
  "luminance": 0.1894
}

Semantic roles & 50–950 ramp

primary
#7B7D17
secondary
#403EB2
accent
#3CEC3F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7B7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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