#AFC126#AFC126

#AFC126 is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.1% C 0.167 H 116.5°. Best body text is #000000 at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#AFC126
RGBrgb(175, 193, 38)
HSLhsl(67, 67%, 45%)
HSVhsv(67, 80%, 76%)
CMYKcmyk(9.3%, 0%, 80.3%, 24.3%)
CIE-LABlab(74.44, -24.42, 68.73)
CIE-LCHlch(74.44, 72.94, 109.56°)
OKLaboklab(77.13% -0.0745 0.1494)
OKLCHoklch(77.13% 0.167 116.5)
XYZxyz(37.1000, 47.3944, 9.0270)
Luminance0.4739 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC126 #3826C1
analogous
#C18626 #AFC126 #61C126
triadic
#AFC126 #26AFC1 #C126AF
tetradic
#AFC126 #26C186 #3826C1 #C12661
square
#AFC126 #26C186 #3826C1 #C12661
split-complementary
#AFC126 #2661C1 #8626C1
monochromatic
#525B12 #818E1C #AFC126 #CADB49 #D9E57C

Accessibility & contrast

On white

2.00
#AFC126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.48
#AFC126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC126
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC126#FFFFFF#000000##000000
##AFC1261.002.0010.4810.48
#FFFFFF2.001.0021.0021.00
#00000010.4821.001.001.00
##00000010.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB600
Deuteranopia (green-blind)
#CDB836
Tritanopia (blue-blind)
#BAB6A5
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc126;
/* rgb */ color: rgb(175, 193, 38);
/* oklch */ color: oklch(77.1% 0.167 116.5);
Tailwind
colors: {
  custom: {
    50: '#cbd36f',
    500: '#afc126',
    950: '#000000',
  },
}
SCSS
$custom: #afc126;
$custom-light: #cbd36f;
$custom-dark: #000000;
JSON
{
  "hex": "#afc126",
  "rgb": {
    "r": 175,
    "g": 193,
    "b": 38
  },
  "hsl": {
    "h": 66.968,
    "s": 67.1,
    "l": 45.294
  },
  "oklch": {
    "l": 0.77133,
    "c": 0.16692,
    "h": 116.5
  },
  "luminance": 0.47394
}

Semantic roles & 50–950 ramp

primary
#AFC126
secondary
#8075CD
accent
#3EEA52
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141408
muted
#82827B

Preview Lab

Preview with #AFC126

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

Preview Lab → · Contrast checker → · Palette generator →

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