#7B8331#7B8331

#7B8331 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.106 H 114.4°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7B8331
RGBrgb(123, 131, 49)
HSLhsl(66, 46%, 35%)
HSVhsv(66, 63%, 51%)
CMYKcmyk(6.1%, 0%, 62.6%, 48.6%)
CIE-LABlab(52.58, -14.79, 42.11)
CIE-LCHlch(52.58, 44.63, 109.35°)
OKLaboklab(58.61% -0.0438 0.0965)
OKLCHoklch(58.61% 0.106 114.4)
XYZxyz(16.8394, 20.6656, 6.0069)
Luminance0.2067 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8331 #393183
analogous
#836231 #7B8331 #528331
triadic
#7B8331 #317B83 #83317B
tetradic
#7B8331 #318362 #393183 #833152
square
#7B8331 #318362 #393183 #833152
split-complementary
#7B8331 #315283 #623183
monochromatic
#272A10 #515620 #7B8331 #A5B042 #BDC668

Accessibility & contrast

On white

4.09
#7B8331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#7B8331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8331
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8331#FFFFFF#000000##000000
##7B83311.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7D27
Deuteranopia (green-blind)
#8C7E36
Tritanopia (blue-blind)
#837C72
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7b8331;
/* rgb */ color: rgb(123, 131, 49);
/* oklch */ color: oklch(58.6% 0.106 114.4);
Tailwind
colors: {
  custom: {
    50: '#a3a66d',
    500: '#7b8331',
    950: '#000000',
  },
}
SCSS
$custom: #7b8331;
$custom-light: #a3a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8331",
  "rgb": {
    "r": 123,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 65.854,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58612,
    "c": 0.106,
    "h": 114.4
  },
  "luminance": 0.20665
}

Semantic roles & 50–950 ramp

primary
#7B8331
secondary
#6962AE
accent
#53D55F
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7B8331

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

Preview Lab → · Contrast checker → · Palette generator →

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