#7A841B#7A841B

#7A841B is a mid, vivid yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.123 H 115.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7A841B
RGBrgb(122, 132, 27)
HSLhsl(66, 66%, 31%)
HSVhsv(66, 80%, 52%)
CMYKcmyk(7.6%, 0%, 79.5%, 48.2%)
CIE-LABlab(52.64, -17.08, 50.94)
CIE-LCHlch(52.64, 53.73, 108.54°)
OKLaboklab(58.59% -0.0523 0.1115)
OKLCHoklch(58.59% 0.123 115.2)
XYZxyz(16.4756, 20.7195, 4.1681)
Luminance0.2072 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A841B #251B84
analogous
#84591B #7A841B #45841B
triadic
#7A841B #1B7A84 #841B7A
tetradic
#7A841B #1B8459 #251B84 #841B45
square
#7A841B #1B8459 #251B84 #841B45
split-complementary
#7A841B #1B4584 #591B84
monochromatic
#1C1E06 #4B5111 #7A841B #A9B725 #CAD841

Accessibility & contrast

On white

4.08
#7A841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#7A841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A841B
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A841B#FFFFFF#000000##000000
##7A841B1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8D7E25
Tritanopia (blue-blind)
#827C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7a841b;
/* rgb */ color: rgb(122, 132, 27);
/* oklch */ color: oklch(58.6% 0.123 115.2);
Tailwind
colors: {
  custom: {
    50: '#a4a761',
    500: '#7a841b',
    950: '#000000',
  },
}
SCSS
$custom: #7a841b;
$custom-light: #a4a761;
$custom-dark: #000000;
JSON
{
  "hex": "#7a841b",
  "rgb": {
    "r": 122,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 65.714,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.58589,
    "c": 0.12313,
    "h": 115.2
  },
  "luminance": 0.20719
}

Semantic roles & 50–950 ramp

primary
#7A841B
secondary
#4E43B7
accent
#3FE94F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7A841B

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

Preview Lab → · Contrast checker → · Palette generator →

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