#7B7E17#7B7E17

#7B7E17 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.118 H 111.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7B7E17
RGBrgb(123, 126, 23)
HSLhsl(62, 69%, 29%)
HSVhsv(62, 82%, 49%)
CMYKcmyk(2.4%, 0%, 81.7%, 50.6%)
CIE-LABlab(50.91, -13.59, 50.68)
CIE-LCHlch(50.91, 52.47, 105.01°)
OKLaboklab(57.22% -0.0431 0.1101)
OKLCHoklch(57.22% 0.118 111.4)
XYZxyz(15.7845, 19.1949, 3.6840)
Luminance0.1920 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7E17 #1A177E
analogous
#7E4E17 #7B7E17 #487E17
triadic
#7B7E17 #177B7E #7E177B
tetradic
#7B7E17 #177E4E #1A177E #7E1748
square
#7B7E17 #177E4E #1A177E #7E1748
split-complementary
#7B7E17 #17487E #4E177E
monochromatic
#191A05 #484A0E #7B7E17 #AEB220 #D5DA35

Accessibility & contrast

On white

4.34
#7B7E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#7B7E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B7E17
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7E17#FFFFFF#000000##000000
##7B7E171.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#897A21
Tritanopia (blue-blind)
#84766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7b7e17;
/* rgb */ color: rgb(123, 126, 23);
/* oklch */ color: oklch(57.2% 0.118 111.4);
Tailwind
colors: {
  custom: {
    50: '#a5a35f',
    500: '#7b7e17',
    950: '#000000',
  },
}
SCSS
$custom: #7b7e17;
$custom-light: #a5a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7e17",
  "rgb": {
    "r": 123,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 61.748,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57219,
    "c": 0.11822,
    "h": 111.4
  },
  "luminance": 0.19195
}

Semantic roles & 50–950 ramp

primary
#7B7E17
secondary
#423EB3
accent
#3CEC41
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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