#798236#798236

#798236 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.3% C 0.101 H 115.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#798236
RGBrgb(121, 130, 54)
HSLhsl(67, 41%, 36%)
HSVhsv(67, 58%, 51%)
CMYKcmyk(6.9%, 0%, 58.5%, 49%)
CIE-LABlab(52.17, -14.73, 39.23)
CIE-LCHlch(52.17, 41.90, 110.58°)
OKLaboklab(58.26% -0.0429 0.0911)
OKLCHoklch(58.26% 0.101 115.2)
XYZxyz(16.5340, 20.2968, 6.5360)
Luminance0.2030 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798236 #3F3682
analogous
#826536 #798236 #538236
triadic
#798236 #367982 #823679
tetradic
#798236 #368265 #3F3682 #823653
square
#798236 #368265 #3F3682 #823653
split-complementary
#798236 #365382 #653682
monochromatic
#292C12 #515724 #798236 #A1AD48 #B9C36F

Accessibility & contrast

On white

4.15
#798236 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#798236 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798236
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798236#FFFFFF#000000##000000
##7982361.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7C2E
Deuteranopia (green-blind)
#8A7D3B
Tritanopia (blue-blind)
#807B71
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798236;
/* rgb */ color: rgb(121, 130, 54);
/* oklch */ color: oklch(58.3% 0.101 115.2);
Tailwind
colors: {
  custom: {
    50: '#a2a670',
    500: '#798236',
    950: '#000000',
  },
}
SCSS
$custom: #798236;
$custom-light: #a2a670;
$custom-dark: #000000;
JSON
{
  "hex": "#798236",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 54
  },
  "hsl": {
    "h": 67.105,
    "s": 41.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58259,
    "c": 0.10071,
    "h": 115.2
  },
  "luminance": 0.20297
}

Semantic roles & 50–950 ramp

primary
#798236
secondary
#7068AC
accent
#57D165
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #798236

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

Preview Lab → · Contrast checker → · Palette generator →

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