#797F15#797F15

#797F15 is a mid, vivid yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.121 H 113.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#797F15
RGBrgb(121, 127, 21)
HSLhsl(63, 72%, 29%)
HSVhsv(63, 83%, 50%)
CMYKcmyk(4.7%, 0%, 83.5%, 50.2%)
CIE-LABlab(51.03, -15.12, 51.31)
CIE-LCHlch(51.03, 53.50, 106.42°)
OKLaboklab(57.27% -0.0474 0.1112)
OKLCHoklch(57.27% 0.121 113.1)
XYZxyz(15.6104, 19.2982, 3.6119)
Luminance0.1930 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F15 #1B157F
analogous
#7F5015 #797F15 #447F15
triadic
#797F15 #15797F #7F1579
tetradic
#797F15 #157F50 #1B157F #7F1544
square
#797F15 #157F50 #1B157F #7F1544
split-complementary
#797F15 #15447F #50157F
monochromatic
#191A04 #474A0C #797F15 #ABB41E #D3DD31

Accessibility & contrast

On white

4.32
#797F15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#797F15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F15
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F15#FFFFFF#000000##000000
##797F151.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#897B20
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f15;
/* rgb */ color: rgb(121, 127, 21);
/* oklch */ color: oklch(57.3% 0.121 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a35e',
    500: '#797f15',
    950: '#000000',
  },
}
SCSS
$custom: #797f15;
$custom-light: #a3a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#797f15",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 63.396,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.57271,
    "c": 0.12082,
    "h": 113.1
  },
  "luminance": 0.19298
}

Semantic roles & 50–950 ramp

primary
#797F15
secondary
#433CB4
accent
#39EE44
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #797F15

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

Preview Lab → · Contrast checker → · Palette generator →

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