#AFB126#AFB126

#AFB126 is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.5% C 0.150 H 110.5°. Best body text is #000000 at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#AFB126
RGBrgb(175, 177, 38)
HSLhsl(61, 65%, 42%)
HSVhsv(61, 79%, 69%)
CMYKcmyk(1.1%, 0%, 78.5%, 30.6%)
CIE-LABlab(69.96, -16.46, 64.76)
CIE-LCHlch(69.96, 66.82, 104.27°)
OKLaboklab(73.54% -0.0525 0.1409)
OKLCHoklch(73.54% 0.15 110.5)
XYZxyz(33.7524, 40.6992, 7.9111)
Luminance0.4070 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB126 #2826B1
analogous
#B16D26 #AFB126 #6AB126
triadic
#AFB126 #26AFB1 #B126AF
tetradic
#AFB126 #26B16D #2826B1 #B1266A
square
#AFB126 #26B16D #2826B1 #B1266A
split-complementary
#AFB126 #266AB1 #6D26B1
monochromatic
#4B4C10 #7D7F1B #AFB126 #D4D63F #DFE071

Accessibility & contrast

On white

2.30
#AFB126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.14
#AFB126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB126
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB126#FFFFFF#000000##000000
##AFB1261.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#C1AD33
Tritanopia (blue-blind)
#BCA598
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb126;
/* rgb */ color: rgb(175, 177, 38);
/* oklch */ color: oklch(73.5% 0.150 110.5);
Tailwind
colors: {
  custom: {
    50: '#cbc86d',
    500: '#afb126',
    950: '#000000',
  },
}
SCSS
$custom: #afb126;
$custom-light: #cbc86d;
$custom-dark: #000000;
JSON
{
  "hex": "#afb126",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 38
  },
  "hsl": {
    "h": 60.863,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.73543,
    "c": 0.15036,
    "h": 110.5
  },
  "luminance": 0.40698
}

Semantic roles & 50–950 ramp

primary
#AFB126
secondary
#6D6BC7
accent
#40E843
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141308
muted
#82827A

Preview Lab

Preview with #AFB126

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

Preview Lab → · Contrast checker → · Palette generator →

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