#A7A138#A7A138

#A7A138 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.4% C 0.125 H 106.1°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#A7A138
RGBrgb(167, 161, 56)
HSLhsl(57, 50%, 44%)
HSVhsv(57, 66%, 65%)
CMYKcmyk(0%, 3.6%, 66.5%, 34.5%)
CIE-LABlab(64.96, -10.82, 53.26)
CIE-LCHlch(64.96, 54.35, 101.48°)
OKLaboklab(69.42% -0.0345 0.12)
OKLCHoklch(69.42% 0.125 106.1)
XYZxyz(29.3961, 33.9918, 8.7532)
Luminance0.3399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A138 #383EA7
analogous
#A76938 #A7A138 #75A738
triadic
#A7A138 #38A7A1 #A138A7
tetradic
#A7A138 #38A769 #383EA7 #A73875
square
#A7A138 #38A769 #383EA7 #A73875
split-complementary
#A7A138 #3875A7 #6938A7
monochromatic
#4B4919 #797529 #A7A138 #C6C056 #D6D184

Accessibility & contrast

On white

2.69
#A7A138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#A7A138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A138
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A138#FFFFFF#000000##000000
##A7A1381.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9B2A
Deuteranopia (green-blind)
#B1A03F
Tritanopia (blue-blind)
#B3978C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a7a138;
/* rgb */ color: rgb(167, 161, 56);
/* oklch */ color: oklch(69.4% 0.125 106.1);
Tailwind
colors: {
  custom: {
    50: '#c4bc74',
    500: '#a7a138',
    950: '#000000',
  },
}
SCSS
$custom: #a7a138;
$custom-light: #c4bc74;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a138",
  "rgb": {
    "r": 167,
    "g": 161,
    "b": 56
  },
  "hsl": {
    "h": 56.757,
    "s": 49.776,
    "l": 43.725
  },
  "oklch": {
    "l": 0.69418,
    "c": 0.1249,
    "h": 106.1
  },
  "luminance": 0.33991
}

Semantic roles & 50–950 ramp

primary
#A7A138
secondary
#7B7FBF
accent
#56D94F
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A7A138

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

Preview Lab → · Contrast checker → · Palette generator →

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