#797F27#797F27

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

Color values

HEX#797F27
RGBrgb(121, 127, 39)
HSLhsl(64, 53%, 33%)
HSVhsv(64, 69%, 50%)
CMYKcmyk(4.7%, 0%, 69.3%, 50.2%)
CIE-LABlab(51.14, -14.24, 44.97)
CIE-LCHlch(51.14, 47.18, 107.57°)
OKLaboklab(57.39% -0.0432 0.1011)
OKLCHoklch(57.39% 0.11 113.2)
XYZxyz(15.8412, 19.3905, 4.8273)
Luminance0.1939 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F27 #2D277F
analogous
#7F5927 #797F27 #4D7F27
triadic
#797F27 #27797F #7F2779
tetradic
#797F27 #277F59 #2D277F #7F274D
square
#797F27 #277F59 #2D277F #7F274D
split-complementary
#797F27 #274D7F #59277F
monochromatic
#20210A #4C5019 #797F27 #A6AE35 #C3CB55

Accessibility & contrast

On white

4.31
#797F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797F27#FFFFFF#000000##000000
##797F271.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#89791A
Deuteranopia (green-blind)
#897B2D
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f27;
/* rgb */ color: rgb(121, 127, 39);
/* oklch */ color: oklch(57.4% 0.110 113.2);
Tailwind
colors: {
  custom: {
    50: '#a2a467',
    500: '#797f27',
    950: '#000000',
  },
}
SCSS
$custom: #797f27;
$custom-light: #a2a467;
$custom-dark: #000000;
JSON
{
  "hex": "#797f27",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 39
  },
  "hsl": {
    "h": 64.091,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5739,
    "c": 0.10993,
    "h": 113.2
  },
  "luminance": 0.1939
}

Semantic roles & 50–950 ramp

primary
#797F27
secondary
#5852B0
accent
#4BDC55
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797F27

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

Preview Lab → · Contrast checker → · Palette generator →

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