#797623#797623

#797623 is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 55.2% C 0.103 H 107.3°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#797623
RGBrgb(121, 118, 35)
HSLhsl(58, 55%, 31%)
HSVhsv(58, 71%, 47%)
CMYKcmyk(0%, 2.5%, 71.1%, 52.5%)
CIE-LABlab(48.44, -9.57, 43.93)
CIE-LCHlch(48.44, 44.96, 102.29°)
OKLaboklab(55.22% -0.0305 0.0982)
OKLCHoklch(55.22% 0.103 107.3)
XYZxyz(14.6675, 17.1436, 4.1262)
Luminance0.1714 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797623 #232679
analogous
#794B23 #797623 #517923
triadic
#797623 #237976 #762379
tetradic
#797623 #23794B #232679 #792351
square
#797623 #23794B #232679 #792351
split-complementary
#797623 #235179 #4B2379
monochromatic
#1A1908 #4A4815 #797623 #A8A431 #CBC74B

Accessibility & contrast

On white

4.74
#797623 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#797623 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797623
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797623#FFFFFF#000000##FFFFFF
##7976231.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807116
Deuteranopia (green-blind)
#827429
Tritanopia (blue-blind)
#826E65
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #797623;
/* rgb */ color: rgb(121, 118, 35);
/* oklch */ color: oklch(55.2% 0.103 107.3);
Tailwind
colors: {
  custom: {
    50: '#a29d63',
    500: '#797623',
    950: '#000000',
  },
}
SCSS
$custom: #797623;
$custom-light: #a29d63;
$custom-dark: #000000;
JSON
{
  "hex": "#797623",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 35
  },
  "hsl": {
    "h": 57.907,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55223,
    "c": 0.1028,
    "h": 107.3
  },
  "luminance": 0.17143
}

Semantic roles & 50–950 ramp

primary
#797623
secondary
#4C4FAC
accent
#4FDE49
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797623

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

Preview Lab → · Contrast checker → · Palette generator →

#797623 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva