#7B8620#7B8620

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

Color values

HEX#7B8620
RGBrgb(123, 134, 32)
HSLhsl(66, 61%, 33%)
HSVhsv(66, 76%, 53%)
CMYKcmyk(8.2%, 0%, 76.1%, 47.5%)
CIE-LABlab(53.35, -17.45, 49.92)
CIE-LCHlch(53.35, 52.88, 109.27°)
OKLaboklab(59.19% -0.053 0.1102)
OKLCHoklch(59.19% 0.122 115.7)
XYZxyz(16.9546, 21.3657, 4.5971)
Luminance0.2137 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8620 #2B2086
analogous
#865E20 #7B8620 #488620
triadic
#7B8620 #207B86 #86207B
tetradic
#7B8620 #20865E #2B2086 #862048
square
#7B8620 #20865E #2B2086 #862048
split-complementary
#7B8620 #204886 #5E2086
monochromatic
#202308 #4E5514 #7B8620 #A8B72C #C6D44C

Accessibility & contrast

On white

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

On black

5.27
#7B8620 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8620
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8620#FFFFFF#000000##000000
##7B86201.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b8620;
/* rgb */ color: rgb(123, 134, 32);
/* oklch */ color: oklch(59.2% 0.122 115.7);
Tailwind
colors: {
  custom: {
    50: '#a4a964',
    500: '#7b8620',
    950: '#000000',
  },
}
SCSS
$custom: #7b8620;
$custom-light: #a4a964;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8620",
  "rgb": {
    "r": 123,
    "g": 134,
    "b": 32
  },
  "hsl": {
    "h": 66.471,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59185,
    "c": 0.12226,
    "h": 115.7
  },
  "luminance": 0.21365
}

Semantic roles & 50–950 ramp

primary
#7B8620
secondary
#564BB7
accent
#43E555
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B8620

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

Preview Lab → · Contrast checker → · Palette generator →

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