#7B831A#7B831A

#7B831A is a mid, vivid yellow. Relative luminance 0.205; OKLCH L 58.4% C 0.122 H 114.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7B831A
RGBrgb(123, 131, 26)
HSLhsl(65, 67%, 31%)
HSVhsv(65, 80%, 51%)
CMYKcmyk(6.1%, 0%, 80.2%, 48.6%)
CIE-LABlab(52.42, -16.14, 51.09)
CIE-LCHlch(52.42, 53.58, 107.53°)
OKLaboklab(58.43% -0.0499 0.1116)
OKLCHoklch(58.43% 0.122 114.1)
XYZxyz(16.4716, 20.5185, 4.0698)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B831A #221A83
analogous
#83561A #7B831A #47831A
triadic
#7B831A #1A7B83 #831A7B
tetradic
#7B831A #1A8356 #221A83 #831A47
square
#7B831A #1A8356 #221A83 #831A47
split-complementary
#7B831A #1A4783 #561A83
monochromatic
#1B1D06 #4B5010 #7B831A #ABB624 #CDD93F

Accessibility & contrast

On white

4.11
#7B831A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#7B831A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B831A
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B831A#FFFFFF#000000##000000
##7B831A1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#8D7E24
Tritanopia (blue-blind)
#847B70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7b831a;
/* rgb */ color: rgb(123, 131, 26);
/* oklch */ color: oklch(58.4% 0.122 114.1);
Tailwind
colors: {
  custom: {
    50: '#a4a661',
    500: '#7b831a',
    950: '#000000',
  },
}
SCSS
$custom: #7b831a;
$custom-light: #a4a661;
$custom-dark: #000000;
JSON
{
  "hex": "#7b831a",
  "rgb": {
    "r": 123,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 64.571,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.58429,
    "c": 0.1222,
    "h": 114.1
  },
  "luminance": 0.20518
}

Semantic roles & 50–950 ramp

primary
#7B831A
secondary
#4B42B7
accent
#3EEA4B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7B831A

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

Preview Lab → · Contrast checker → · Palette generator →

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