#798028#798028

#798028 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.6% C 0.110 H 113.7°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#798028
RGBrgb(121, 128, 40)
HSLhsl(65, 52%, 33%)
HSVhsv(65, 69%, 50%)
CMYKcmyk(5.5%, 0%, 68.8%, 49.8%)
CIE-LABlab(51.45, -14.71, 44.86)
CIE-LCHlch(51.45, 47.22, 108.16°)
OKLaboklab(57.64% -0.0444 0.101)
OKLCHoklch(57.64% 0.11 113.7)
XYZxyz(15.9878, 19.6568, 4.9590)
Luminance0.1966 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798028 #2F2880
analogous
#805B28 #798028 #4D8028
triadic
#798028 #287980 #802879
tetradic
#798028 #28805B #2F2880 #80284D
square
#798028 #28805B #2F2880 #80284D
split-complementary
#798028 #284D80 #5B2880
monochromatic
#21230B #4D5119 #798028 #A5AF37 #C2CB58

Accessibility & contrast

On white

4.26
#798028 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#798028 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798028
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798028#FFFFFF#000000##000000
##7980281.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A1B
Deuteranopia (green-blind)
#897B2E
Tritanopia (blue-blind)
#81786E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798028;
/* rgb */ color: rgb(121, 128, 40);
/* oklch */ color: oklch(57.6% 0.110 113.7);
Tailwind
colors: {
  custom: {
    50: '#a2a467',
    500: '#798028',
    950: '#000000',
  },
}
SCSS
$custom: #798028;
$custom-light: #a2a467;
$custom-dark: #000000;
JSON
{
  "hex": "#798028",
  "rgb": {
    "r": 121,
    "g": 128,
    "b": 40
  },
  "hsl": {
    "h": 64.773,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57638,
    "c": 0.11035,
    "h": 113.7
  },
  "luminance": 0.19656
}

Semantic roles & 50–950 ramp

primary
#798028
secondary
#5B54B0
accent
#4CDC57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798028

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

Preview Lab → · Contrast checker → · Palette generator →

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