#A6B138#A6B138

#A6B138 is a light, vivid yellow. Relative luminance 0.398; OKLCH L 72.9% C 0.142 H 114.4°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#A6B138
RGBrgb(166, 177, 56)
HSLhsl(65, 52%, 46%)
HSVhsv(65, 68%, 69%)
CMYKcmyk(6.2%, 0%, 68.4%, 30.6%)
CIE-LABlab(69.35, -19.48, 57.73)
CIE-LCHlch(69.35, 60.93, 108.65°)
OKLaboklab(72.91% -0.0588 0.1295)
OKLCHoklch(72.91% 0.142 114.4)
XYZxyz(32.1627, 39.8374, 9.7357)
Luminance0.3984 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B138 #4338B1
analogous
#B18038 #A6B138 #69B138
triadic
#A6B138 #38A6B1 #B138A6
tetradic
#A6B138 #38B180 #4338B1 #B13869
square
#A6B138 #38B180 #4338B1 #B13869
split-complementary
#A6B138 #3869B1 #8038B1
monochromatic
#4F541B #7A8329 #A6B138 #C1CB5B #D3DA8A

Accessibility & contrast

On white

2.34
#A6B138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#A6B138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B138
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B138#FFFFFF#000000##000000
##A6B1381.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA826
Deuteranopia (green-blind)
#BDAA41
Tritanopia (blue-blind)
#B1A799
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a6b138;
/* rgb */ color: rgb(166, 177, 56);
/* oklch */ color: oklch(72.9% 0.142 114.4);
Tailwind
colors: {
  custom: {
    50: '#c3c876',
    500: '#a6b138',
    950: '#000000',
  },
}
SCSS
$custom: #a6b138;
$custom-light: #c3c876;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b138",
  "rgb": {
    "r": 166,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 65.455,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.72911,
    "c": 0.14221,
    "h": 114.4
  },
  "luminance": 0.39837
}

Semantic roles & 50–950 ramp

primary
#A6B138
secondary
#8781C4
accent
#4CDB59
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B

Preview Lab

Preview with #A6B138

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

Preview Lab → · Contrast checker → · Palette generator →

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