#797F28#797F28

#797F28 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.109 H 113.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#797F28
RGBrgb(121, 127, 40)
HSLhsl(64, 52%, 33%)
HSVhsv(64, 69%, 50%)
CMYKcmyk(4.7%, 0%, 68.5%, 50.2%)
CIE-LABlab(51.15, -14.18, 44.56)
CIE-LCHlch(51.15, 46.76, 107.65°)
OKLaboklab(57.4% -0.0429 0.1004)
OKLCHoklch(57.4% 0.109 113.2)
XYZxyz(15.8580, 19.3972, 4.9157)
Luminance0.1940 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F28 #2E287F
analogous
#7F5928 #797F28 #4D7F28
triadic
#797F28 #28797F #7F2879
tetradic
#797F28 #287F59 #2E287F #7F284D
square
#797F28 #287F59 #2E287F #7F284D
split-complementary
#797F28 #284D7F #59287F
monochromatic
#20220B #4D5019 #797F28 #A5AE37 #C2CA57

Accessibility & contrast

On white

4.30
#797F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#797F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F28
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F28#FFFFFF#000000##000000
##797F281.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#88791C
Deuteranopia (green-blind)
#887B2E
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f28;
/* rgb */ color: rgb(121, 127, 40);
/* oklch */ color: oklch(57.4% 0.109 113.2);
Tailwind
colors: {
  custom: {
    50: '#a2a467',
    500: '#797f28',
    950: '#000000',
  },
}
SCSS
$custom: #797f28;
$custom-light: #a2a467;
$custom-dark: #000000;
JSON
{
  "hex": "#797f28",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 64.138,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57399,
    "c": 0.10917,
    "h": 113.2
  },
  "luminance": 0.19397
}

Semantic roles & 50–950 ramp

primary
#797F28
secondary
#5A54AF
accent
#4CDC56
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797F28

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

Preview Lab → · Contrast checker → · Palette generator →

#797F28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva