#797B23#797B23

#797B23 is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.4% C 0.108 H 110.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#797B23
RGBrgb(121, 123, 35)
HSLhsl(61, 56%, 31%)
HSVhsv(61, 72%, 48%)
CMYKcmyk(1.6%, 0%, 71.5%, 51.8%)
CIE-LABlab(49.92, -12.32, 45.40)
CIE-LCHlch(49.92, 47.04, 105.18°)
OKLaboklab(56.41% -0.0383 0.1013)
OKLCHoklch(56.41% 0.108 110.7)
XYZxyz(15.2720, 18.3526, 4.3277)
Luminance0.1835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B23 #25237B
analogous
#7B5123 #797B23 #4D7B23
triadic
#797B23 #23797B #7B2379
tetradic
#797B23 #237B51 #25237B #7B234D
square
#797B23 #237B51 #25237B #7B234D
split-complementary
#797B23 #234D7B #51237B
monochromatic
#1B1C08 #4A4B15 #797B23 #A8AB31 #C9CC4C

Accessibility & contrast

On white

4.50
#797B23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#797B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B23
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B23#FFFFFF#000000##000000
##797B231.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#857515
Deuteranopia (green-blind)
#867829
Tritanopia (blue-blind)
#82736A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b23;
/* rgb */ color: rgb(121, 123, 35);
/* oklch */ color: oklch(56.4% 0.108 110.7);
Tailwind
colors: {
  custom: {
    50: '#a2a164',
    500: '#797b23',
    950: '#000000',
  },
}
SCSS
$custom: #797b23;
$custom-light: #a2a164;
$custom-dark: #000000;
JSON
{
  "hex": "#797b23",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 35
  },
  "hsl": {
    "h": 61.364,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56405,
    "c": 0.10826,
    "h": 110.7
  },
  "luminance": 0.18352
}

Semantic roles & 50–950 ramp

primary
#797B23
secondary
#4E4CAE
accent
#49DF4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797B23

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

Preview Lab → · Contrast checker → · Palette generator →

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