#797A27#797A27

#797A27 is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.2% C 0.104 H 110.0°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#797A27
RGBrgb(121, 122, 39)
HSLhsl(61, 52%, 32%)
HSVhsv(61, 68%, 48%)
CMYKcmyk(0.8%, 0%, 68%, 52.2%)
CIE-LABlab(49.65, -11.53, 43.45)
CIE-LCHlch(49.65, 44.96, 104.86°)
OKLaboklab(56.2% -0.0356 0.0979)
OKLCHoklch(56.2% 0.104 110)
XYZxyz(15.2114, 18.1309, 4.6174)
Luminance0.1813 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A27 #28277A
analogous
#7A5227 #797A27 #507A27
triadic
#797A27 #27797A #7A2779
tetradic
#797A27 #277A52 #28277A #7A2750
square
#797A27 #277A52 #28277A #7A2750
split-complementary
#797A27 #27507A #52277A
monochromatic
#1D1D09 #4B4C18 #797A27 #A7A836 #C7C853

Accessibility & contrast

On white

4.54
#797A27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#797A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A27
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A27#FFFFFF#000000##000000
##797A271.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#84751B
Deuteranopia (green-blind)
#85772D
Tritanopia (blue-blind)
#827269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a27;
/* rgb */ color: rgb(121, 122, 39);
/* oklch */ color: oklch(56.2% 0.104 110.0);
Tailwind
colors: {
  custom: {
    50: '#a2a066',
    500: '#797a27',
    950: '#000000',
  },
}
SCSS
$custom: #797a27;
$custom-light: #a2a066;
$custom-dark: #000000;
JSON
{
  "hex": "#797a27",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 39
  },
  "hsl": {
    "h": 60.723,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56202,
    "c": 0.10415,
    "h": 110
  },
  "luminance": 0.1813
}

Semantic roles & 50–950 ramp

primary
#797A27
secondary
#5251AC
accent
#4DDB4F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797A27

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

Preview Lab → · Contrast checker → · Palette generator →

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