#7B8622#7B8622

#7B8622 is a mid, vivid yellow. Relative luminance 0.214; OKLCH L 59.2% C 0.121 H 115.7°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7B8622
RGBrgb(123, 134, 34)
HSLhsl(67, 60%, 33%)
HSVhsv(67, 75%, 53%)
CMYKcmyk(8.2%, 0%, 74.6%, 47.5%)
CIE-LABlab(53.36, -17.35, 49.21)
CIE-LCHlch(53.36, 52.17, 109.42°)
OKLaboklab(59.2% -0.0525 0.109)
OKLCHoklch(59.2% 0.121 115.7)
XYZxyz(16.9827, 21.3769, 4.7446)
Luminance0.2138 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8622 #2D2286
analogous
#865F22 #7B8622 #498622
triadic
#7B8622 #227B86 #86227B
tetradic
#7B8622 #22865F #2D2286 #862249
square
#7B8622 #22865F #2D2286 #862249
split-complementary
#7B8622 #224986 #5F2286
monochromatic
#212409 #4E5516 #7B8622 #A8B72E #C4D350

Accessibility & contrast

On white

3.98
#7B8622 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#7B8622 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8622
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8622#FFFFFF#000000##000000
##7B86221.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0F
Deuteranopia (green-blind)
#8F802A
Tritanopia (blue-blind)
#837E73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7b8622;
/* rgb */ color: rgb(123, 134, 34);
/* oklch */ color: oklch(59.2% 0.121 115.7);
Tailwind
colors: {
  custom: {
    50: '#a4a965',
    500: '#7b8622',
    950: '#000000',
  },
}
SCSS
$custom: #7b8622;
$custom-light: #a4a965;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8622",
  "rgb": {
    "r": 123,
    "g": 134,
    "b": 34
  },
  "hsl": {
    "h": 66.6,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59198,
    "c": 0.12102,
    "h": 115.7
  },
  "luminance": 0.21377
}

Semantic roles & 50–950 ramp

primary
#7B8622
secondary
#594EB6
accent
#45E356
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B8622

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

Preview Lab → · Contrast checker → · Palette generator →

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