#AFB157#AFB157

#AFB157 is a light, moderate yellow. Relative luminance 0.412; OKLCH L 74.0% C 0.114 H 110.0°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#AFB157
RGBrgb(175, 177, 87)
HSLhsl(61, 37%, 52%)
HSVhsv(61, 51%, 69%)
CMYKcmyk(1.1%, 0%, 50.8%, 30.6%)
CIE-LABlab(70.35, -13.39, 45.29)
CIE-LCHlch(70.35, 47.23, 106.47°)
OKLaboklab(73.97% -0.0389 0.1068)
OKLCHoklch(73.97% 0.114 110)
XYZxyz(35.1224, 41.2471, 15.1263)
Luminance0.4125 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB157 #5957B1
analogous
#B18657 #AFB157 #82B157
triadic
#AFB157 #57AFB1 #B157AF
tetradic
#AFB157 #57B186 #5957B1 #B15782
square
#AFB157 #57B186 #5957B1 #B15782
split-complementary
#AFB157 #5782B1 #8657B1
monochromatic
#60612D #898A40 #AFB157 #C3C481 #D7D8AB

Accessibility & contrast

On white

2.27
#AFB157 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.25
#AFB157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB157
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB157#FFFFFF#000000##000000
##AFB1571.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDAA4F
Deuteranopia (green-blind)
#BEAD5C
Tritanopia (blue-blind)
#B9A89D
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb157;
/* rgb */ color: rgb(175, 177, 87);
/* oklch */ color: oklch(74.0% 0.114 110.0);
Tailwind
colors: {
  custom: {
    50: '#c9c889',
    500: '#afb157',
    950: '#000000',
  },
}
SCSS
$custom: #afb157;
$custom-light: #c9c889;
$custom-dark: #000000;
JSON
{
  "hex": "#afb157",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 87
  },
  "hsl": {
    "h": 61.333,
    "s": 36.585,
    "l": 51.765
  },
  "oklch": {
    "l": 0.73973,
    "c": 0.11367,
    "h": 110
  },
  "luminance": 0.41246
}

Semantic roles & 50–950 ramp

primary
#AFB157
secondary
#9F9EC6
accent
#5BCD5E
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13130C
muted
#82827D

Preview Lab

Preview with #AFB157

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

Preview Lab → · Contrast checker → · Palette generator →

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