#798147#798147

#798147 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.3% C 0.081 H 115.4°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#798147
RGBrgb(121, 129, 71)
HSLhsl(68, 29%, 39%)
HSVhsv(68, 45%, 51%)
CMYKcmyk(6.2%, 0%, 45%, 49.4%)
CIE-LABlab(52.09, -12.46, 30.35)
CIE-LCHlch(52.09, 32.81, 112.33°)
OKLaboklab(58.26% -0.0348 0.0733)
OKLCHoklch(58.26% 0.081 115.4)
XYZxyz(16.8729, 20.2206, 8.9741)
Luminance0.2022 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798147 #4F4781
analogous
#816C47 #798147 #5C8147
triadic
#798147 #477981 #814779
tetradic
#798147 #47816C #4F4781 #81475C
square
#798147 #47816C #4F4781 #81475C
split-complementary
#798147 #475C81 #6C4781
monochromatic
#2F321C #545A31 #798147 #9DA75F #B5BC86

Accessibility & contrast

On white

4.16
#798147 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#798147 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798147
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798147#FFFFFF#000000##000000
##7981471.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#887C42
Deuteranopia (green-blind)
#887D4A
Tritanopia (blue-blind)
#7F7B73
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798147;
/* rgb */ color: rgb(121, 129, 71);
/* oklch */ color: oklch(58.3% 0.081 115.4);
Tailwind
colors: {
  custom: {
    50: '#a1a57b',
    500: '#798147',
    950: '#000000',
  },
}
SCSS
$custom: #798147;
$custom-light: #a1a57b;
$custom-dark: #000000;
JSON
{
  "hex": "#798147",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 71
  },
  "hsl": {
    "h": 68.276,
    "s": 29,
    "l": 39.216
  },
  "oklch": {
    "l": 0.58259,
    "c": 0.08111,
    "h": 115.4
  },
  "luminance": 0.2022
}

Semantic roles & 50–950 ramp

primary
#798147
secondary
#827CA8
accent
#63C570
background
#FAFAF7
surface
#F3F4EE
border
#CDCEC9
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #798147

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

Preview Lab → · Contrast checker → · Palette generator →

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