#798B1C#798B1C

#798B1C is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.2% C 0.131 H 118.9°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#798B1C
RGBrgb(121, 139, 28)
HSLhsl(70, 66%, 33%)
HSVhsv(70, 80%, 55%)
CMYKcmyk(12.9%, 0%, 79.9%, 45.5%)
CIE-LABlab(54.67, -21.11, 52.44)
CIE-LCHlch(54.67, 56.53, 111.93°)
OKLaboklab(60.21% -0.0633 0.1149)
OKLCHoklch(60.21% 0.131 118.9)
XYZxyz(17.3278, 22.6142, 4.5505)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B1C #2E1C8B
analogous
#8B661C #798B1C #418B1C
triadic
#798B1C #1C798B #8B1C79
tetradic
#798B1C #1C8B66 #2E1C8B #8B1C41
square
#798B1C #1C8B66 #2E1C8B #8B1C41
split-complementary
#798B1C #1C418B #661C8B
monochromatic
#202507 #4D5812 #798B1C #A5BE26 #C2DA47

Accessibility & contrast

On white

3.80
#798B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#798B1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B1C
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B1C#FFFFFF#000000##000000
##798B1C1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#938327
Tritanopia (blue-blind)
#818377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b1c;
/* rgb */ color: rgb(121, 139, 28);
/* oklch */ color: oklch(60.2% 0.131 118.9);
Tailwind
colors: {
  custom: {
    50: '#a3ac63',
    500: '#798b1c',
    950: '#000000',
  },
}
SCSS
$custom: #798b1c;
$custom-light: #a3ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#798b1c",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 69.73,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60205,
    "c": 0.13115,
    "h": 118.9
  },
  "luminance": 0.22614
}

Semantic roles & 50–950 ramp

primary
#798B1C
secondary
#5A47BC
accent
#3EE95A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B1C

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

Preview Lab → · Contrast checker → · Palette generator →

#798B1C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva