#AFB127#AFB127

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

Color values

HEX#AFB127
RGBrgb(175, 177, 39)
HSLhsl(61, 64%, 42%)
HSVhsv(61, 78%, 69%)
CMYKcmyk(1.1%, 0%, 78%, 30.6%)
CIE-LABlab(69.97, -16.43, 64.47)
CIE-LCHlch(69.97, 66.53, 104.30°)
OKLaboklab(73.55% -0.0523 0.1404)
OKLCHoklch(73.55% 0.15 110.4)
XYZxyz(33.7688, 40.7057, 7.9972)
Luminance0.4071 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB127 #2927B1
analogous
#B16E27 #AFB127 #6AB127
triadic
#AFB127 #27AFB1 #B127AF
tetradic
#AFB127 #27B16E #2927B1 #B1276A
square
#AFB127 #27B16E #2927B1 #B1276A
split-complementary
#AFB127 #276AB1 #6E27B1
monochromatic
#4C4D11 #7D7F1C #AFB127 #D3D540 #DEE072

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFB127#FFFFFF#000000##000000
##AFB1271.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)
#BFA900
Deuteranopia (green-blind)
#C1AD33
Tritanopia (blue-blind)
#BCA598
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb127;
/* rgb */ color: rgb(175, 177, 39);
/* oklch */ color: oklch(73.5% 0.150 110.4);
Tailwind
colors: {
  custom: {
    50: '#cbc86e',
    500: '#afb127',
    950: '#000000',
  },
}
SCSS
$custom: #afb127;
$custom-light: #cbc86e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb127",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 39
  },
  "hsl": {
    "h": 60.87,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.73548,
    "c": 0.14987,
    "h": 110.4
  },
  "luminance": 0.40705
}

Semantic roles & 50–950 ramp

primary
#AFB127
secondary
#6E6DC7
accent
#41E743
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB127

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

Preview Lab → · Contrast checker → · Palette generator →

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