#7B7B22#7B7B22

#7B7B22 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.109 H 109.4°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7B7B22
RGBrgb(123, 123, 34)
HSLhsl(60, 57%, 31%)
HSVhsv(60, 72%, 48%)
CMYKcmyk(0%, 0%, 72.4%, 51.8%)
CIE-LABlab(50.09, -11.45, 46.03)
CIE-LCHlch(50.09, 47.43, 103.97°)
OKLaboklab(56.58% -0.0361 0.1023)
OKLCHoklch(56.58% 0.109 109.4)
XYZxyz(15.5406, 18.4928, 4.2639)
Luminance0.1849 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7B22 #22227B
analogous
#7B4E22 #7B7B22 #4E7B22
triadic
#7B7B22 #227B7B #7B227B
tetradic
#7B7B22 #227B4E #22227B #7B224E
square
#7B7B22 #227B4E #22227B #7B224E
split-complementary
#7B7B22 #224E7B #4E227B
monochromatic
#1B1B07 #4B4B15 #7B7B22 #ABAB2F #CDCD4A

Accessibility & contrast

On white

4.47
#7B7B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7B7B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B7B22
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7B22#FFFFFF#000000##000000
##7B7B221.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#857613
Deuteranopia (green-blind)
#867828
Tritanopia (blue-blind)
#84736A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7b7b22;
/* rgb */ color: rgb(123, 123, 34);
/* oklch */ color: oklch(56.6% 0.109 109.4);
Tailwind
colors: {
  custom: {
    50: '#a4a164',
    500: '#7b7b22',
    950: '#000000',
  },
}
SCSS
$custom: #7b7b22;
$custom-light: #a4a164;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7b22",
  "rgb": {
    "r": 123,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 60,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56579,
    "c": 0.10851,
    "h": 109.4
  },
  "luminance": 0.18492
}

Semantic roles & 50–950 ramp

primary
#7B7B22
secondary
#4B4BAE
accent
#48E048
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7B7B22

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

Preview Lab → · Contrast checker → · Palette generator →

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