#AFB138#AFB138

#AFB138 is a light, vivid yellow. Relative luminance 0.408; OKLCH L 73.7% C 0.140 H 110.3°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#AFB138
RGBrgb(175, 177, 56)
HSLhsl(61, 52%, 46%)
HSVhsv(61, 68%, 69%)
CMYKcmyk(1.1%, 0%, 68.4%, 30.6%)
CIE-LABlab(70.07, -15.64, 58.68)
CIE-LCHlch(70.07, 60.73, 104.92°)
OKLaboklab(73.66% -0.0486 0.1312)
OKLCHoklch(73.66% 0.14 110.3)
XYZxyz(34.1163, 40.8447, 9.8273)
Luminance0.4084 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB138 #3A38B1
analogous
#B17638 #AFB138 #72B138
triadic
#AFB138 #38AFB1 #B138AF
tetradic
#AFB138 #38B176 #3A38B1 #B13872
square
#AFB138 #38B176 #3A38B1 #B13872
split-complementary
#AFB138 #3872B1 #7638B1
monochromatic
#53541B #818329 #AFB138 #C9CB5B #D9DA8A

Accessibility & contrast

On white

2.29
#AFB138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.17
#AFB138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB138
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB138#FFFFFF#000000##000000
##AFB1381.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA925
Deuteranopia (green-blind)
#C0AD41
Tritanopia (blue-blind)
#BBA699
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb138;
/* rgb */ color: rgb(175, 177, 56);
/* oklch */ color: oklch(73.7% 0.140 110.3);
Tailwind
colors: {
  custom: {
    50: '#cac876',
    500: '#afb138',
    950: '#000000',
  },
}
SCSS
$custom: #afb138;
$custom-light: #cac876;
$custom-dark: #000000;
JSON
{
  "hex": "#afb138",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 60.992,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.73658,
    "c": 0.13992,
    "h": 110.3
  },
  "luminance": 0.40844
}

Semantic roles & 50–950 ramp

primary
#AFB138
secondary
#8281C4
accent
#4CDB4F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB138

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

Preview Lab → · Contrast checker → · Palette generator →

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