#7B8522#7B8522

#7B8522 is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.0% C 0.120 H 115.2°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7B8522
RGBrgb(123, 133, 34)
HSLhsl(66, 59%, 33%)
HSVhsv(66, 74%, 52%)
CMYKcmyk(7.5%, 0%, 74.4%, 47.8%)
CIE-LABlab(53.06, -16.82, 48.92)
CIE-LCHlch(53.06, 51.73, 108.98°)
OKLaboklab(58.96% -0.051 0.1084)
OKLCHoklch(58.96% 0.12 115.2)
XYZxyz(16.8451, 21.1018, 4.6987)
Luminance0.2110 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8522 #2C2285
analogous
#855E22 #7B8522 #498522
triadic
#7B8522 #227B85 #85227B
tetradic
#7B8522 #22855E #2C2285 #852249
square
#7B8522 #22855E #2C2285 #852249
split-complementary
#7B8522 #224985 #5E2285
monochromatic
#212409 #4E5416 #7B8522 #A8B62E #C5D24F

Accessibility & contrast

On white

4.02
#7B8522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#7B8522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8522
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8522#FFFFFF#000000##000000
##7B85221.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0F
Deuteranopia (green-blind)
#8E7F2A
Tritanopia (blue-blind)
#837D72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7b8522;
/* rgb */ color: rgb(123, 133, 34);
/* oklch */ color: oklch(59.0% 0.120 115.2);
Tailwind
colors: {
  custom: {
    50: '#a4a865',
    500: '#7b8522',
    950: '#000000',
  },
}
SCSS
$custom: #7b8522;
$custom-light: #a4a865;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8522",
  "rgb": {
    "r": 123,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 66.061,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58958,
    "c": 0.11984,
    "h": 115.2
  },
  "luminance": 0.21102
}

Semantic roles & 50–950 ramp

primary
#7B8522
secondary
#584DB6
accent
#45E255
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B8522

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

Preview Lab → · Contrast checker → · Palette generator →

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