#798131#798131

#798131 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.104 H 114.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#798131
RGBrgb(121, 129, 49)
HSLhsl(66, 45%, 35%)
HSVhsv(66, 62%, 51%)
CMYKcmyk(6.2%, 0%, 62%, 49.4%)
CIE-LABlab(51.82, -14.60, 41.23)
CIE-LCHlch(51.82, 43.74, 109.50°)
OKLaboklab(57.96% -0.0431 0.0947)
OKLCHoklch(57.96% 0.104 114.5)
XYZxyz(16.2902, 19.9875, 5.9050)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798131 #393181
analogous
#816131 #798131 #518131
triadic
#798131 #317981 #813179
tetradic
#798131 #318161 #393181 #813151
square
#798131 #318161 #393181 #813151
split-complementary
#798131 #315181 #613181
monochromatic
#26280F #4F5520 #798131 #A3AD42 #BCC567

Accessibility & contrast

On white

4.20
#798131 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#798131 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798131
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798131#FFFFFF#000000##000000
##7981311.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B28
Deuteranopia (green-blind)
#8A7C36
Tritanopia (blue-blind)
#817A70
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798131;
/* rgb */ color: rgb(121, 129, 49);
/* oklch */ color: oklch(58.0% 0.104 114.5);
Tailwind
colors: {
  custom: {
    50: '#a2a56d',
    500: '#798131',
    950: '#000000',
  },
}
SCSS
$custom: #798131;
$custom-light: #a2a56d;
$custom-dark: #000000;
JSON
{
  "hex": "#798131",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 49
  },
  "hsl": {
    "h": 66,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.57964,
    "c": 0.10408,
    "h": 114.5
  },
  "luminance": 0.19987
}

Semantic roles & 50–950 ramp

primary
#798131
secondary
#6961AD
accent
#53D560
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #798131

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

Preview Lab → · Contrast checker → · Palette generator →

#798131 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva