#AFB12E#AFB12E

#AFB12E is a light, vivid yellow. Relative luminance 0.408; OKLCH L 73.6% C 0.146 H 110.4°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#AFB12E
RGBrgb(175, 177, 46)
HSLhsl(61, 59%, 44%)
HSVhsv(61, 74%, 69%)
CMYKcmyk(1.1%, 0%, 74%, 30.6%)
CIE-LABlab(70.00, -16.14, 62.26)
CIE-LCHlch(70.00, 64.31, 104.53°)
OKLaboklab(73.59% -0.0509 0.137)
OKLCHoklch(73.59% 0.146 110.4)
XYZxyz(33.8957, 40.7565, 8.6655)
Luminance0.4076 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB12E #302EB1
analogous
#B1712E #AFB12E #6DB12E
triadic
#AFB12E #2EAFB1 #B12EAF
tetradic
#AFB12E #2EB171 #302EB1 #B12E6D
square
#AFB12E #2EB171 #302EB1 #B12E6D
split-complementary
#AFB12E #2E6DB1 #712EB1
monochromatic
#4F5015 #7F8021 #AFB12E #CED04C #DCDD7C

Accessibility & contrast

On white

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

On black

9.15
#AFB12E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB12E
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB12E#FFFFFF#000000##000000
##AFB12E1.002.299.159.15
#FFFFFF2.291.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA912
Deuteranopia (green-blind)
#C0AD39
Tritanopia (blue-blind)
#BBA698
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afb12e;
/* rgb */ color: rgb(175, 177, 46);
/* oklch */ color: oklch(73.6% 0.146 110.4);
Tailwind
colors: {
  custom: {
    50: '#cac871',
    500: '#afb12e',
    950: '#000000',
  },
}
SCSS
$custom: #afb12e;
$custom-light: #cac871;
$custom-dark: #000000;
JSON
{
  "hex": "#afb12e",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 46
  },
  "hsl": {
    "h": 60.916,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.73588,
    "c": 0.14618,
    "h": 110.4
  },
  "luminance": 0.40755
}

Semantic roles & 50–950 ramp

primary
#AFB12E
secondary
#7675C6
accent
#46E248
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB12E

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

Preview Lab → · Contrast checker → · Palette generator →

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